Breaking changes
- The plugin is now more strict about detecting special typing symbols like
cast
andAnnotated
, which means re-exports from a different module no longer work without using the new settingtype-checking-typing-modules
. Refer to theREADME
for usage instructions. - Drop Python 3.8 support. Add Python 3.13 support. #197
What's New
- Add support for
singledispatch
/singledispatchmethod
. #196 - Add new setting to enforce future imports for all annotations. #200
Bug fixes
typing.Annotated
should be special-cased liketyping.Literal
. #193- Make sure to visit
returns
not just the argument annotations. #198 - Avoid false negatives for TC001-003 related to
typing.cast
. #199 - Injector plugin requires all annotations in the injected function. #201
Full Changelog: v2.9.1...v3.0.0