Righttyper

Latest version: v0.0.10

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

Scan your dependencies

0.0.10

This release makes major improvements in the quality of generated types, including automatically generating generics, and providing much more detailed types for generators and co-routines, among others. These more precise types should be significantly better at catching type errors while also avoiding false alarms.

What's Changed
* Adds the `--include-functions` CLI option, limiting typing to functions matching a regex. by emeryberger in https://github.com/RightTyper/RightTyper/pull/66
* Added correct event cleanup by maxwell3025 in https://github.com/RightTyper/RightTyper/pull/70
* Small fixes by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/79
* Resolves smoketest issue by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/80
* Adds typevar-based generic type annotations by jaltmayerpizzorno and andOrlando in https://github.com/RightTyper/RightTyper/pull/81
* Reorganized and fixed type coverage options by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/85
* (Re-)added array shape generalization, made --sampling / --no-sampling public by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/86
* Smarter Typing for `Self` by maxwell3025 and jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/84
* MyPy fixes, cleanups by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/90
* Greatly improves Generator, AsyncGenerator and Coroutine typing by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/94
* Attempts to harden code against the errors shown in issue 93; by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/95
* Implements AST-based generator `send`/`asend` instrumentation by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/98
* (mostly) fixed bug finding unsuitable superclasses by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/101
* Add Windows support by andOrlando and jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/97

New Contributors
* maxwell3025 made their first contribution in https://github.com/RightTyper/RightTyper/pull/70
* andOrlando made their first contribution in https://github.com/RightTyper/RightTyper/pull/75

**Full Changelog**: https://github.com/RightTyper/RightTyper/compare/v0.0.9...v0.0.10

0.0.9

What's Changed
* Adaptively increase recursion limit when necessary. by emeryberger in https://github.com/RightTyper/RightTyper/pull/46
* Arg processing fix by emeryberger in https://github.com/RightTyper/RightTyper/pull/48
* Prevent infinite recursion by emeryberger in https://github.com/RightTyper/RightTyper/pull/51
* Added results by emeryberger in https://github.com/RightTyper/RightTyper/pull/55
* Adds jaxtyping annotations with --infer-shapes, fixes some bugs, gathers options in a dataclass and simplifies code by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/57
* Improved Generator/Iterator typing, bug fixes, cleanups by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/58
* Improved "Self" recognition, fixed circular frame references, move to generate righttyper.out from transformer, DRYing code by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/59
* Switch to SimpleQueue, small code cleanups by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/60
* Reimplement multiprocessing with concurrent.futures.ProcessPoolExecutor. by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/61
* Adding "smoke test" workflow and several bug fixes. by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/62
* Added support for Callable typing based on discovered types by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/63
* Implemented union of generics' arguments, reimplemented superclass search, fixed a few bugs by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/64

**Full Changelog**: https://github.com/RightTyper/RightTyper/compare/v0.0.8...v0.0.9

0.0.8

What's Changed

* Dtype handling by emeryberger in https://github.com/RightTyper/RightTyper/pull/16
* Unified transformer by emeryberger in https://github.com/RightTyper/RightTyper/pull/17
* Fixed typo and coloration by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/18
* Makes loader more compatible and fixes undefined symbol by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/19
* Some tests and bug fixes in UnifiedTransformer by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/20
* Added regression test for issue 22. by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/23
* Mypy compliance by emeryberger in https://github.com/RightTyper/RightTyper/pull/24
* Moar types by emeryberger in https://github.com/RightTyper/RightTyper/pull/25
* Moved inline test and fixed a few small bugs by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/26
* Alternative way to emit imports, based on type names by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/27
* Added deletion of old-style type hint comments when adding annotations, since having both causes mypy errors. by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/28
* Fixed bug handling locally defined types. by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/29
* Fixed transformer not applying changes to methods by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/30
* Greatly improving support for 'builtins' types; by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/31
* Added full qualification of inner type in `dtype` by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/32
* Adding CI for tests by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/33
* Support for local classes and functions among others; by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/34
* Transformer based stubs generator, generic collection sampling, revamped builtins handling, use of PEP585 standard containers by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/35
* Moved to transformer-based alias search, avoiding confusion when types are seen in other context by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/36
* Handles import name conflicts, fixes bugs finding modules, some cleanups by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/37
* Fixed sampling from dict when its items() method doesn't return a Collection and a few other things by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/38
* Bug fixes, cleanup by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/39
* Added support for keyword-, positional-only, args and kwargs arguments; added searching package for types by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/40
* Adds checking for "builtins" type name conflicts among other type name conflict detection improvements by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/42
* Fixed not handling cst.Tuple and cst.List versions of cst.AsName; by jaltmayerpizzorno in https://github.com/RightTyper/RightTyper/pull/43

New Contributors

* jaltmayerpizzorno made their first contribution in https://github.com/RightTyper/RightTyper/pull/18

**Full Changelog**: https://github.com/RightTyper/RightTyper/compare/v0.0.7...v0.0.8

0.0.7

What's Changed

* Match code instead of names to reduce sampling overhead by emeryberger in https://github.com/RightTyper/RightTyper/pull/10
* Use strings for annotations of unknown types by emeryberger in https://github.com/RightTyper/RightTyper/pull/11
* Surround imports with a TYPE_CHECKING conditional to prevent circular dependencies by emeryberger in https://github.com/RightTyper/RightTyper/pull/15

**Full Changelog**: https://github.com/RightTyper/RightTyper/compare/v0.0.6...v0.0.7

0.0.6

What's Changed

* Incorporates adaptive sampling to limit overhead by emeryberger in https://github.com/RightTyper/RightTyper/pull/8

**Full Changelog**: https://github.com/RightTyper/RightTyper/compare/v0.0.5...v0.0.6

0.0.5

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.