-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Label
Projects
Milestones
Assignee
Sort
Issues list
when descendents of a common base implement a shared protocol, a ternary returning either cannot be assigned to the protocol
bug
mypy got something wrong
topic-join-v-union
Using join vs. using unions
#16281
by glyph
was closed Oct 17, 2023
mypy thinks that instance variables that implement the descriptor protocol are invoked when accessing them
bug
mypy got something wrong
topic-descriptors
Properties, class vs. instance attributes
#15822
opened Aug 5, 2023 by
glyph
TypeVar declared at class scope with generic bound specialized on an in-scope generic parameter TypeVar doesn't give an error
bug
mypy got something wrong
#15758
opened Jul 24, 2023 by
glyph
properties appear to lose their specialness inside context managers at class scope
bug
mypy got something wrong
topic-descriptors
Properties, class vs. instance attributes
#15507
opened Jun 23, 2023 by
glyph
callables are inferred to be descriptors when they shouldn't always be, protocols are inferred to not be descriptors when maybe they should, and mypy converts between them with no error
bug
mypy got something wrong
#15189
opened May 5, 2023 by
glyph
callable protocols cannot infer the type of their own mypy got something wrong
self
bug
#15188
by glyph
was closed Sep 14, 2023
at runtime dataclass special-cases FunctionType, but at type-time mypy special-cases Callable, leading to mismatches
bug
mypy got something wrong
#14869
opened Mar 10, 2023 by
glyph
callable protocols can be satisfied by any type object, even ones with nothing to do with their return type or arguments
bug
mypy got something wrong
#14544
by glyph
was closed Feb 27, 2023
adding mypy got something wrong
topic-calls
Function calls, *args, **kwargs, defaults
topic-protocols
__name__
attribute to a callable Protocol
doesn't work with function objects and breaks inference with Protocol
objects
bug
#12976
by glyph
was closed Nov 16, 2022
__instancecheck__
on an instance works at runtime, but mypy thinks it's invalid
feature
priority-2-low
topic-runtime-semantics
#12974
by glyph
was closed Jun 14, 2022
class decorator syntax seems to ignore dataclasses' constructor signatures
bug
mypy got something wrong
topic-dataclasses
#12971
opened Jun 11, 2022 by
glyph
Protocol can't constrain __init__
bug
mypy got something wrong
topic-protocols
#12970
by glyph
was closed Nov 16, 2022
it's not possible to define an 'add' that works with more than one kind of number when using number types directly
bug
mypy got something wrong
#12899
opened May 28, 2022 by
glyph
every-attribute-optional derived type, like TypeScript's Partial
feature
#10889
by glyph
was closed Apr 4, 2022
I want to be able to declare "naive datetime" or "aware datetime" as types
feature
#10067
opened Feb 11, 2021 by
glyph
deleting a class-scoped variable that shadows a global variable causes mypy to think it's undefined
bug
mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#9600
opened Oct 15, 2020 by
glyph
generic parameter with None default populates its TypeVar as Optional when it should just be None sometimes
bug
mypy got something wrong
#9468
by glyph
was closed Sep 22, 2020
a decorator that modifies another decorator gives an incorrect type error
bug
mypy got something wrong
topic-calls
Function calls, *args, **kwargs, defaults
#9265
opened Aug 4, 2020 by
glyph
datetimes and dates are not substitutable but mypy thinks they are
needs discussion
#9015
opened Jun 17, 2020 by
glyph
attrs plugin error: "The erased type of self '...*' is not a supertype of its class" on class definition with a generic using a constrained type variable, but then seems to work fine after definition
bug
mypy got something wrong
priority-1-normal
topic-attrs
topic-type-variables
#5542
by glyph
was closed Sep 3, 2018
type alias to union is invalid in runtime context
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
#5354
by glyph
was closed May 5, 2020
ProTip!
Add no:assignee to see everything that’s not assigned.