Releases: snok/flake8-type-checking
Releases · snok/flake8-type-checking
v2.5.0
What's Changed
This release adds two new error codes:
- TC007: Type alias needs to be made into a string literal
- TC008: Type alias does not need to be a string literal
which will make the plugin handle TypeAliases, and corresponding imports, correctly.
The same PR also fixed false positive TC201 errors. Kudos to @Daverball for making it happen 👏
Full Changelog: v2.4.2...v2.5.0
v2.4.2
What's new
- perf: Make
is_exempt_modulework with an iterator by @iurisilvio in #162 - fix: Annotations inside
if TYPE_CHECKING:should not result in TC200 by @Daverball in #165 - fix: Prevent false positive TC004 when variable name matches name of module in TYPE_CHECKING block by @sondrelg in #161
- fix: Wrapped annotations with subscripted types should not raise TC201 by @Daverball in #166
- fix: TC201 should never emit for classes defined in-file by @Daverball in #167
New Contributors
- @iurisilvio made their first contribution in #162
- @Daverball made their first contribution in #165
Full Changelog: v2.4.1...v2.4.2
v2.4.1
v2.4.0
What's Changed
- Made it possible to skip modules using wildcard notation (
*), by @KozyrevIvan in #155
New Contributors
- @KozyrevIvan made their first contribution in #155
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
This release disables the plugin for stubs (*.pyi) files. Considered a bugfix rather than a breaking change, since the rules of the plugin don't apply there.
- docs: fix typo by @odiseo0 in #149
- chore: Update test matrix python versions by @sondrelg in #150
- fix: disable the plugin entirely for stub files by @jakkdl in #153
New Contributors
Full Changelog: v2.3.0...v2.3.1
v2.3.0
New features
- feat: Support use of TYPE_CHECKING with simple boolean logic by @steverice in #142
Maintenance
- Remove fix for "double namespace" imports by @steverice in #144
- Add test coverage for stub file ignore by @steverice in #145
New Contributors
- @steverice made their first contribution in #144
Full Changelog: v2.2.0...v2.3.0
v2.2.0
New features
Bugfixes
- fix: Ignore TC100 for stub files by @sondrelg in #126
- fix: Stop modifying
node.attrby @sondrelg in #140
Maintenance
- chore: Update Poetry version to 1.2.0 by @sondrelg in #132
- chore: remove upper bound from Python version specifier by @sisp in #134
- docs: Expand and correct examples by @sondrelg in #135
New Contributors
Full Changelog: v2.1.3...v2.2.0
v2.1.3
v2.1.2
v2.1.1
Fixes
- Correct TC101 (
... does not need to be a string literal) logic so it only flags string literals (#122 by @shiftinv) - Fix a TC004 issue (
Move import ... out of type-checking block) where we weren't handling all imports (#123 by @shiftinv) - Fix TC002 (
Move import ... into type checking block) false positives (#124)