mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
Update dis.pyi and opcode.pyi for Python3.12 (#10276)
This commit is contained in:
1 parent
f10b5fb9b6
commit
b0a3917145
3 files changed
+13
-12
No files matched your search
+4
-1
@@ -29,9 +29,12 @@ __all__ = [
|
||||
"opmap",
|
||||
"HAVE_ARGUMENT",
|
||||
"EXTENDED_ARG",
|
||||
"hasnargs",
|
||||
"stack_effect",
|
||||
]
|
||||
if sys.version_info >= (3, 12):
|
||||
__all__ += ["hasarg", "hasexc"]
|
||||
else:
|
||||
__all__ += ["hasnargs"]
|
||||
|
||||
# Strictly this should not have to include Callable, but mypy doesn't use FunctionType
|
||||
# for functions (python/mypy#3171)
|
||||
|
||||
Reference in new issue
Block a user