Optype

Latest version: v0.4.0

Safety actively analyzes 622838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.0

The minimum required Python version has been lowered from 3.12 to 3.10.

What's Changed
* Bump `basedpyright` to 1.10.0 by jorenham in https://github.com/jorenham/optype/pull/41
* basedpyright badge by jorenham in https://github.com/jorenham/optype/pull/42
* bump ruff to 0.3.7 and basedpyright to 1.10.1 by jorenham in https://github.com/jorenham/optype/pull/43
* Add pypi classifiers and project urls by jorenham in https://github.com/jorenham/optype/pull/44
* Add `CONTRIBUTING.md` and `CODE_OF_CONDUCT.md` by jorenham in https://github.com/jorenham/optype/pull/45
* Run markdownlint in the CI workflow by jorenham in https://github.com/jorenham/optype/pull/46
* Support for Python 3.11 and 3.13 by jorenham in https://github.com/jorenham/optype/pull/47
* Support for Python 3.10 by jorenham in https://github.com/jorenham/optype/pull/48


**Full Changelog**: https://github.com/jorenham/optype/compare/v0.3.1...v0.4.0

0.3.1

What's Changed
* Update pyright and pre-commit by jorenham in https://github.com/jorenham/optype/pull/34
* Switch from pyright to basedpyright by jorenham in https://github.com/jorenham/optype/pull/35
* Introductory usage example by jorenham in https://github.com/jorenham/optype/pull/38
* Bump ruff from 0.3.4 to 0.3.5 by dependabot in https://github.com/jorenham/optype/pull/37
* Post ruff upgrade tweaks by jorenham in https://github.com/jorenham/optype/pull/39


**Full Changelog**: https://github.com/jorenham/optype/compare/v0.3.0...v0.3.1

0.3.0

What's Changed
* Fix `CanAIterSelf` not being an `AsyncGenerator` subtype by jorenham in https://github.com/jorenham/optype/pull/17
* upgrade pyright to 1.1.355 by jorenham in https://github.com/jorenham/optype/pull/18
* several doc fixes and improvements by jorenham in https://github.com/jorenham/optype/pull/27
* add ops for `__reversed__` and `__missing__` by jorenham in https://github.com/jorenham/optype/pull/28
- `CanSequence[I: CanIndex, V]` (combines `CanLen` and `CanGetitem[I, V]`)
- `do_reversed: DoesReversed` (type-corrected alias for `builtins.reversed`)
- `do_missing: DoesMissing` (calls `.__missing__()`)
* Interfaces for the `copy` standard library by jorenham in https://github.com/jorenham/optype/pull/29
- `CanCopy[T]` and `CanCopySelf`
- `CanDeepcopy[T]` and `CanDeepcopySelf`
- `CanReplace[T, V]` and `CanReplaceSelf[V]`
* Interfaces for the `pickle` standard library by jorenham in https://github.com/jorenham/optype/pull/30
- `CanReduce[R: str | tuple]`
- `CanReduceEx[R: str | tuple]`
- `CanGetState[S]`
- `CanSetState[S]`
- `CanGetnewargs[*Args]`
- `CanGetnewargsEx[*Args, Kw]`
* upgrade to ruff 0.3.4 by jorenham in https://github.com/jorenham/optype/pull/31
* Interfaces for the `dataclasses` standard library by jorenham in https://github.com/jorenham/optype/pull/32
- `HasDataclassFields`


**Full Changelog**: https://github.com/jorenham/optype/compare/v0.2.2...v0.3.0

0.2.2

What's Changed
* fix incorrect `optype.do_ne` annotation by jorenham in https://github.com/jorenham/optype/pull/10
* fix incorrect `optype.DoesIMod` annotation by jorenham in https://github.com/jorenham/optype/pull/11
* upgrade to ruff 0.3.3 by jorenham in https://github.com/jorenham/optype/pull/12
* add docstrings for some `Can*` types by jorenham in https://github.com/jorenham/optype/pull/13
* add `CanIterSelf[+V]` and `CanAIterSelf[+V]` by jorenham in https://github.com/jorenham/optype/pull/14
* add typed ops for `__len__` and `__length_hint__` by jorenham in https://github.com/jorenham/optype/pull/15


**Full Changelog**: https://github.com/jorenham/optype/compare/v0.2.1...v0.2.2

0.2.1

What's Changed
* Bump pytest from 8.0.2 to 8.1.1 by dependabot in https://github.com/jorenham/optype/pull/5
* Bump pyright to 1.1.354 by jorenham in https://github.com/jorenham/optype/pull/6
* Configure markdownlint by jorenham in https://github.com/jorenham/optype/pull/7
* Builtin type constructor operators by jorenham in https://github.com/jorenham/optype/pull/8
* `do_bool: DoesBool`
* `do_int: DoesInt`
* `do_float: DoesFloat`
* `do_complex: DoesComplex`
* `do_bytes: DoesBytes`
* `do_str: DoesStr`
* Examples & integration tests by jorenham in https://github.com/jorenham/optype/pull/9
* See the [`examples/`](https://github.com/jorenham/optype/tree/master/examples) directory

New Contributors
* dependabot made their first contribution in https://github.com/jorenham/optype/pull/5

**Full Changelog**: https://github.com/jorenham/optype/compare/v0.2.0...v0.2.1

0.2.0

What's Changed
- add 72 operators as `optype.do_*`, so that `optype` > `operator`
- add callback protocols for the 72 operators as `optype.Does*`
- Many documentation improvements
- [BREAKING] renamed the async `CanA{name}` types as `CanA{Name}`, improving readability
- Fixed several minor typing issues
- Improved code quality of the tests
- Streamlined the CI workflow
- Upgrade ruff to 0.3.2, and tightened some rules
- Upgrade pyright to 1.1.353


**Full Changelog**: https://github.com/jorenham/optype/compare/v0.1.0...v0.2.0

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.