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

"Statement is unreachable" when doing match on type objects bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code
#18524 opened Jan 24, 2025 by woodruffw
Type narrowing broken with dict items bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder
#18440 opened Jan 10, 2025 by xceral
Can't infer tuple inside match case bug mypy got something wrong topic-match-statement Python 3.10's match statement
#18039 opened Oct 25, 2024 by racinmat
Type is not being narrowed properly in match statement bug mypy got something wrong good-second-issue topic-match-statement Python 3.10's match statement
#17549 opened Jul 20, 2024 by bergkvist
Simple Literal type narrowing via pattern matching is broken bug mypy got something wrong topic-literal-types topic-match-statement Python 3.10's match statement
#17291 opened May 25, 2024 by willofferfit
match narrowing fails when the operand is an await expression bug mypy got something wrong topic-match-statement Python 3.10's match statement
#17230 opened May 9, 2024 by tamird
Match exhaustiveness with class inheriting from tuple bug mypy got something wrong topic-match-statement Python 3.10's match statement
#17139 opened Apr 18, 2024 by tobiasBora
INTERNAL ERROR on match-case statement bug mypy got something wrong topic-match-statement Python 3.10's match statement
#17134 opened Apr 17, 2024 by randolf-scholz
assert_never fails on match-casing enum with only one member bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code
#16922 opened Feb 16, 2024 by otaj
Cannot use match case to destructure any object using case object(x=y) bug mypy got something wrong topic-match-statement Python 3.10's match statement
#16912 opened Feb 12, 2024 by RenDelaCruz
assert_never on exclusive union of tuples (type narrowing issue?) topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code
#16835 opened Jan 29, 2024 by hjwp
Exhaustive checks with assert_never when using match on a 2-tuple fails bug mypy got something wrong topic-match-statement Python 3.10's match statement
#16650 opened Dec 12, 2023 by MaxG87
Pattern matching: Type narrowing in sequence pattern not applied in guard bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder
#15949 opened Aug 24, 2023 by arvidfm
Type inference issue with match expression in generic functions bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder topic-type-variables
#15930 opened Aug 22, 2023 by myuanz
[match-case] unreachable raised multiple times instead of once. feature topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code topic-type-ignore # type: ignore comments
#15866 opened Aug 14, 2023 by randolf-scholz
Unable to narrow the type of a tagged union when using a match statement bug mypy got something wrong topic-literal-types topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder
#15190 opened May 5, 2023 by jonathan-laurent
Non-overlapping equality not detected inside of pattern matching case statements. bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-overlap Overlapping equality check
#14965 opened Mar 27, 2023 by HexDecimal
Type narrowing on object attribute with match statement doesn't apply feature topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder
#14911 opened Mar 16, 2023 by AiroPi
Exhaustiveness checking fails on non-trivial use of pattern matching bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code
#14833 opened Mar 4, 2023 by ajasmin
capture_pattern binding type mismatches namedtuple type from Union bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-named-tuple
#14501 opened Jan 21, 2023 by enigma
False unreachable warning on match statement bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-reachability Detecting unreachable code
#14485 opened Jan 21, 2023 by delfick
match-case class checking against collection.abc.Callable raises error [misc] bug mypy got something wrong topic-match-statement Python 3.10's match statement
#14014 opened Nov 5, 2022 by randolf-scholz
No narrowing of sequence types after a sequence pattern case in a match statement bug mypy got something wrong topic-match-statement Python 3.10's match statement topic-type-narrowing Conditional type narrowing / binder
#13955 opened Oct 28, 2022 by dmoisset
ProTip! What’s not been updated in a month: updated:<2024-12-25.