You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[1.12 regression] mypy no longer recognises descriptors/get that bind self #18036
For decorators that work on methods as descriptors, I do type-hint+overload __get__ as returning the descriptor or filling in self. This previously worked up to MyPy 1.11 and PyRight was/is happy with it. However, since version 1.12 MyPy no longer matches the overload and completely loses type information; the Possible overload variant suggested is the least suitable.
changed the title [-][Regression] MyPy >=1.12 no longer recognises descriptors/get that bind self[/-][+][1.12 regression] mypy no longer recognises descriptors/get that bind self[/+]on Oct 24, 2024
Activity
[-][Regression] MyPy >=1.12 no longer recognises descriptors/get that bind self[/-][+][1.12 regression] mypy no longer recognises descriptors/get that bind self[/+]hauntsaninja commentedon Oct 24, 2024
Bisects to #17873 cc @JukkaL
mypy_primer -p test.py --bisect-output 'Revealed type is "Any' --debug --old 'v1.11.2'Fix overlap check for ParamSpec types
Fix overlap check for ParamSpec types (python#18040)