Skip to content

issues Search Results · repo:python/mypy language:Python

Filter by

11k results
 (87 ms)

11k results

inpython/mypy (press backspace or delete to remove)

Using a for-loop to search for a value where the else: clause raises an exception should be enough to ensure that the value is always set after the loop. But in a pretty specific scenario this doesn t ...
bug
semantic-analyzer
  • ambv
  • Opened 
    36 minutes ago
  • #19690

Crash Report This crashes stubtest on master: from typing import overload class _decorator: def __init__(self, func: object) - None: ... def __call__(self, x: str) - str: ... @overload def ...
crash
topic-overloads
topic-stubtest
  • brianschubert
  • Opened 
    2 hours ago
  • #19689

mypy incorrectly infers type of ClassVar when accessed in try/except AttributeError Bug Report What s wrong When accessing a ClassVar annotated variable inside a try/except AttributeError block, mypy ...
bug
topic-enum
  • gswifort
  • 1
  • Opened 
    4 hours ago
  • #19686

Bug Report When using a @runtime_checkable protocol and checking isinstance(self, MyProtocol), mypy does not correctly narrow the type of self if the isinstance result is first stored in a variable. This ...
feature
topic-type-narrowing
  • semohr
  • 5
  • Opened 
    18 hours ago
  • #19684

Problem Description​ The same codebase produces ​different type-checking results​ under ​Python 3.9.21​ (detects an error) vs ​Python 3.9.23​ (no error), using the ​same Mypy version (1.6.0 and 1.17.1, ...
bug
  • WSYAH
  • 3
  • Opened 
    yesterday
  • #19680

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
topic-type-context
  • didi64
  • 3
  • Opened 
    2 days ago
  • #19675

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
topic-overloads
topic-self-types
  • nenb
  • Opened 
    3 days ago
  • #19671

Feature Currently, passing an enum into its own constructor forgets its value: from enum import IntEnum class Foo(IntEnum): x = 0 y = 1 reveal_type(Foo(Foo.x)) # reveals Foo, not Foo.x reveal_type(Foo.__new__) ...
feature
good-second-issue
topic-enum
  • randolf-scholz
  • 2
  • Opened 
    3 days ago
  • #19669

https://mypy-play.net/?mypy=latest python=3.12 flags=warn-unreachable gist=0d1eeedbc631fa1d636df8e8dec1a29b def as_tuple[*Ts](*args: *Ts) - tuple[*Ts]: return args def test(one: int, many: tuple[int, ...
bug
  • randolf-scholz
  • 1
  • Opened 
    4 days ago
  • #19665

from typing import Callable def as_tuple[*Ts](*args: *Ts) - tuple[*Ts]: return args def tuple_identity[*Ts](t: tuple[*Ts]) - tuple[*Ts]: return t def tuple_identity2[T: tuple](t: T) - T: return t ...
bug
topic-calls
topic-paramspec
  • randolf-scholz
  • 1
  • Opened 
    4 days ago
  • #19663
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub