Skip to content

Releases

v3.3.0

Choose a tag to compare

@Daverball Daverball released this 04 Nov 14:08
0068490

What's New

  • Add support Python 3.15 and lazy imports

Full Changelog: v3.2.0...v3.3.0

v3.2.0

Choose a tag to compare

@Daverball Daverball released this 18 Feb 22:52
9a76be3

What's Changed

  • Fixes handling of recursive type aliases #210

Full Changelog: v3.1.1...v3.2.0

v3.1.1

Choose a tag to compare

@Daverball Daverball released this 09 Jan 10:32
966749f

What's New

  • No code changes compared to 3.1.0
  • Adds official Python 3.14 support #208
  • Fixes CI workflows for publishing to PyPI #208

Full Changelog: v3.1.0...v3.1.1

v3.1.0

Choose a tag to compare

@Daverball Daverball released this 08 Jan 16:07
15ff148

What's New

  • Adds support for PEP-649 via type-checking-py314plus setting. #207

Full Changelog: v3.0.0...v3.1.0

v3.0.0

Choose a tag to compare

@Daverball Daverball released this 17 Jan 07:20
5d31ced

Breaking changes

  • The plugin is now more strict about detecting special typing symbols like cast and Annotated, which means re-exports from a different module no longer work without using the new setting type-checking-typing-modules. Refer to the README 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 like typing.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

v2.9.1

Choose a tag to compare

@Daverball Daverball released this 28 May 12:00
a0d83eb

What's Changed

  • fix: Annotation assignments in function scope should never be quoted in #187

Full Changelog: v2.9.0...v2.9.1

v2.9.0

Choose a tag to compare

@Daverball Daverball released this 29 Jan 08:55
fae7589

New features

  • Added support for PEP646 syntax for unpacking TypeVarTuple in #183
  • Added TC010 which detects invalid use of string literals with | in #184

Full Changelog: v2.8.0...v2.9.0

v2.8.0

Choose a tag to compare

@Daverball Daverball released this 07 Dec 12:20
d4a7162

New features

Full Changelog: v2.7.0...v2.8.0

v2.7.0

Choose a tag to compare

@sondrelg sondrelg released this 29 Nov 13:29

New features

New Contributors

Full Changelog: v2.6.0...v2.7.0

v2.6.0

Choose a tag to compare

@sondrelg sondrelg released this 25 Nov 14:09

What's Changed

#174 (by @Daverball) refactors the internals of the plugin to get better awareness of scopes.

This:

  • Fixes scoping edge-case issues (#131)
  • Fixes some false positive TC100/TC101 cases
  • Fixes some rare cases where both a TC004/TC009 and a TC100/TC200 were emitted for the same symbol

Secondly, the PR adds support for PEP695 and adds a new plugin error code:

TC009 Move declaration out of type-checking block. Variable is used for more than type hinting

This error code is distinct from the existing, similarly sounding TC004 error, and is used to flag issues related to TypeVar definitions.

Full Changelog: v2.5.1...v2.6.0