Skip to content

Conversation

sterliakov
Copy link
Collaborator

Fixes #18189.

Following #18415, this fixes one more place where parent class generics aren't mapped to attributes correctly.

This comment has been minimized.

@ilevkivskyi
Copy link
Member

LG, but now there is a merge conflict.

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

steam.py (https://github.com/Gobot1234/steam.py)
- steam/ext/csgo/client.py:52: note:          cached_property[Self, steam._gc.client.ClientUser]
+ steam/ext/csgo/client.py:52: note:          cached_property[Client, steam._gc.client.ClientUser]
- steam/ext/tf2/client.py:52: note:          cached_property[Self, steam._gc.client.ClientUser]
+ steam/ext/tf2/client.py:52: note:          cached_property[Client, steam._gc.client.ClientUser]

@ilevkivskyi ilevkivskyi merged commit 9274a07 into python:master Jan 11, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mypy disallows overriding a generic type attribute with a property
3 participants