-
Notifications
You must be signed in to change notification settings - Fork 16
Comparing changes
Open a pull request
base repository: snok/flake8-type-checking
base: v2.5.1
head repository: snok/flake8-type-checking
compare: v2.6.0
- 18 commits
- 21 files changed
- 3 contributors
Commits on Nov 25, 2023
-
Adds TC009 for type checking declarations used at runtime
Extends TC100/TC200 to deal with type checking declarations Avoids a couple of false positives in TC100/TC101 Avoids contradicting TC004/TC009 errors vs. TC100/TC200 errors
Configuration menu - View commit details
-
Copy full SHA for 807cc3e - Browse repository at this point
Copy the full SHA 807cc3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5917ee1 - Browse repository at this point
Copy the full SHA 5917ee1View commit details -
Implements scopes with symbol tables with variable lookups
This symbol lookup also properly supports PEP695 This gets rid of the need for some of our earlier book-keeping, since the variable lookup in the current scope yields a more accurate result Refactored the else case of TC101 into TC201
Configuration menu - View commit details
-
Copy full SHA for 99b52ff - Browse repository at this point
Copy the full SHA 99b52ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for f803883 - Browse repository at this point
Copy the full SHA f803883View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef8ea61 - Browse repository at this point
Copy the full SHA ef8ea61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fdcab2 - Browse repository at this point
Copy the full SHA 2fdcab2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38810c8 - Browse repository at this point
Copy the full SHA 38810c8View commit details -
Cleans up redundant head scope for ClassDef.
Fixes runtime symbol lookup into outer scopes. Treats NamedExpr like definitions. Improves scope handling of comprehensions and if expressions.
Configuration menu - View commit details
-
Copy full SHA for 48fbeda - Browse repository at this point
Copy the full SHA 48fbedaView commit details -
Fixes check (ast.comprehension has no lineno/col_offset)
Adds some regression tests for the more complex scoping rules.
Configuration menu - View commit details
-
Copy full SHA for 6b5dfab - Browse repository at this point
Copy the full SHA 6b5dfabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 393681d - Browse repository at this point
Copy the full SHA 393681dView commit details -
Refactors TC100 into TC200 check to reduce repetition
Avoids warnings by removing `ast.Ellipsis` check, which no longer exists as an actual type, it's just a factory for `ast.Constant` now.
Configuration menu - View commit details
-
Copy full SHA for b9f0e60 - Browse repository at this point
Copy the full SHA b9f0e60View commit details -
Fixes scoping regression tests
We actually need individual symbols for both tests, the comprehensions will leak their loop variables, so we need to use different ones for each expression to ensure we properly test that each one defines a new symbol that is accessible from within the entire expression.
Configuration menu - View commit details
-
Copy full SHA for 50ba61f - Browse repository at this point
Copy the full SHA 50ba61fView commit details -
Moves one of the regression tests from TC004 to TC009
It would never have emitted a TC004, even if we made a mistake it would always have emitted a TC009. I've added an inverse test to convince ourselves that this is true.
Configuration menu - View commit details
-
Copy full SHA for d54b13c - Browse repository at this point
Copy the full SHA d54b13cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e48ae8 - Browse repository at this point
Copy the full SHA 0e48ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f256c67 - Browse repository at this point
Copy the full SHA f256c67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8859321 - Browse repository at this point
Copy the full SHA 8859321View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe4c06b - Browse repository at this point
Copy the full SHA fe4c06bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f478a4 - Browse repository at this point
Copy the full SHA 2f478a4View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.5.1...v2.6.0