Skip to content

fix bug: generic ABC is mistakenly allowed to be instantiated by providing a type argument to the constructor #4263#4283

Open
asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:4263
Open

fix bug: generic ABC is mistakenly allowed to be instantiated by providing a type argument to the constructor #4263#4283
asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:4263

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4263

Test Plan

@github-actions

This comment has been minimized.

@asukaminato0721

Copy link
Copy Markdown
Collaborator Author

wow

steam.ID uses ABCMeta, but without @abstractmethod.

@github-actions github-actions Bot added size/m and removed size/m labels Jul 24, 2026
@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: generic ABC is mistakenly allowed to be instantiated by providing a type argument to the constructor

1 participant