| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Notably we preserve behaviour on the testNarrowingCollections test I added
for more information, see https://pre-commit.ci
| if from_equality: | ||
| # We erase generic args because values with different generic types can compare equal | ||
| # For instance, cast(list[str], []) and cast(list[int], []) | ||
| proposed_type = shallow_erase_type_for_equality(proposed_type) |
There was a problem hiding this comment.
this is the one line difference (the rest is just refactoring for clarity)
Sorry, something went wrong.
|
Diff from mypy_primer, showing the effect of this PR on open source code: graphql-core (https://github.com/graphql-python/graphql-core)
- tests/execution/test_resolve.py:322: error: Value of type "list[SourceLocation] | None" is not indexable [index]
rotki (https://github.com/rotki/rotki)
+ rotkehlchen/tests/integration/test_premium.py:820: error: Statement is unreachable [unreachable]
+ rotkehlchen/tests/integration/test_premium.py:834: error: Statement is unreachable [unreachable]
xarray (https://github.com/pydata/xarray)
+ xarray/tests/test_dataarray.py:291: error: Unused "type: ignore" comment [unused-ignore]
|
Sorry, something went wrong.
|
Will merge this soon! |
Sorry, something went wrong.
| S = Callable[[B], "T"] | ||
|
|
||
| def f(x: S, y: T): | ||
| if x == y: # E: Unsupported left operand type for == ("Callable[[B], T]") |
There was a problem hiding this comment.
Is this related to a recursive callable type?
Sorry, something went wrong.
There was a problem hiding this comment.
No, it's related to fixtures
Sorry, something went wrong.
Fixes python#21143 (on the same lines as python#20704) I also update a comment that is a little out of date since python#20863 and code in checkexpr.py that is out of date for modern typeshed
| Back | FazBrowse Home | New Git URL |
Notably we preserve behaviour on the testNarrowingCollections test I added in a previous PR
Closes #20673