Skip to content

Issues: python/mypy

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Author
Filter by author
Loading
Label
Filter by label
Loading
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Loading
Milestones
Filter by milestone
Loading
Assignee
Filter by who’s assigned
Sort

Issues list

Incorrect type inference with __radd__ with subclass of tuple[int, ...] bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#19006 opened Apr 30, 2025 by randolf-scholz
Wrong types when pattern matching int with http.HTTPStatus bug mypy got something wrong topic-enum topic-match-statement Python 3.10's match statement topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18866 opened Apr 1, 2025 by injust
False positive "Method must have at least one argument" with @enum.member bug mypy got something wrong topic-enum topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18720 opened Feb 22, 2025 by sterliakov
Incorrect inference for types with __eq__ and no __hash__ bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18622 opened Feb 6, 2025 by jorenham
ParamSpec seems to get lost with partial() bug mypy got something wrong topic-paramspec PEP 612, ParamSpec, Concatenate topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18589 opened Feb 2, 2025 by Dreamsorcerer
Should a method name shadow outer names when quoted or with PEP563? bug mypy got something wrong topic-quoted-annotations Detecting problems with quoted annotations topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18525 opened Jan 24, 2025 by sterliakov
mypy doesn't catch inheritance of outer class bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18393 opened Dec 31, 2024 by injust
mypy assumes importlib.metadata is implicitly imported via importlib? bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18153 opened Nov 13, 2024 by asottile-sentry
await-not-async missed & false alarms with genexp and list comprehensions bug mypy got something wrong good-first-issue topic-async async, await, asyncio topic-runtime-semantics mypy doesn't model runtime semantics correctly
#18124 opened Nov 7, 2024 by jakkdl
(🐞) Protocol not understood as an ABCMeta bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#17968 opened Oct 16, 2024 by KotlinIsland
(🎁) Error when __get__ returns incompatible type feature topic-descriptors Properties, class vs. instance attributes topic-runtime-semantics mypy doesn't model runtime semantics correctly
#17360 opened Jun 11, 2024 by KotlinIsland
False negative: typing.Literal[<Union expression>] bug mypy got something wrong semantic-analyzer Problems that happen during semantic analysis topic-literal-types topic-runtime-semantics mypy doesn't model runtime semantics correctly
#17260 opened May 17, 2024 by bzoracler
no error when using generic in except block bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#17248 opened May 15, 2024 by DetachHead
mypy should fail if the first element of the type has the same name as the variable bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#17227 opened May 8, 2024 by userappgate
Keyword arguments to __str__ are rejected bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#16735 opened Jan 2, 2024 by JelleZijlstra
no error when subtyping string literal bug mypy got something wrong priority-2-low topic-runtime-semantics mypy doesn't model runtime semantics correctly
#16195 opened Sep 28, 2023 by DetachHead
Within Annotated[T, x], type errors in x are completely ignored feature topic-runtime-semantics mypy doesn't model runtime semantics correctly
#16094 opened Sep 12, 2023 by andersk
(🐞) no error with | operator on tuple and type bug mypy got something wrong topic-pep-604 PEP 604 (union | operator) topic-runtime-semantics mypy doesn't model runtime semantics correctly
#15756 opened Jul 24, 2023 by KotlinIsland
Incorrect send type with yield from bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#14834 opened Mar 4, 2023 by SimpleArt
Mypy not detecting abstract methods returning undefined types bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#14545 opened Jan 28, 2023 by brunokc
mypy accepts invalid PEP 604 syntax with forward reference feature topic-pep-604 PEP 604 (union | operator) topic-runtime-semantics mypy doesn't model runtime semantics correctly
#14397 opened Jan 5, 2023 by Molkree
No error about __future__ import placed after some statements bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#14195 opened Nov 25, 2022 by denballakh
Does not recognize __func__ of methods bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
#14123 opened Nov 17, 2022 by asottile-sentry
ProTip! Adding no:label will show everything without a label.