Skip to content

Commit fd7040e

Browse files
authored
stubtest: ignore __vectorcalloffset__ (#13416)
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/)
1 parent 1d9ca64 commit fd7040e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ def verify_typealias(
12061206
"__hash__",
12071207
"__getattr__", # resulting behaviour might be typed explicitly
12081208
"__setattr__", # defining this on a class can cause worse type checking
1209+
"__vectorcalloffset__", # undocumented implementation detail of the vectorcall protocol
12091210
# isinstance/issubclass hooks that type-checkers don't usually care about
12101211
"__instancecheck__",
12111212
"__subclasshook__",

0 commit comments

Comments
 (0)