Skip to content

Commit

Permalink
stubtest: ignore __vectorcalloffset__ (python#13416)
Browse files Browse the repository at this point in the history
Typeshed currently has 6 allowlist entries relating to `__vectorcalloffset__` attributes in 3.10 and 3.11. I don't think there's value in adding any of these to the stub: as far as I can tell, it seems to be an undocumented, CPython-specific implementation detail of the [vectorcall protocol](https://peps.python.org/pep-0590/)
  • Loading branch information
AlexWaygood authored Aug 15, 2022
1 parent 1d9ca64 commit fd7040e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,7 @@ def verify_typealias(
"__hash__",
"__getattr__", # resulting behaviour might be typed explicitly
"__setattr__", # defining this on a class can cause worse type checking
"__vectorcalloffset__", # undocumented implementation detail of the vectorcall protocol
# isinstance/issubclass hooks that type-checkers don't usually care about
"__instancecheck__",
"__subclasshook__",
Expand Down

0 comments on commit fd7040e

Please sign in to comment.