mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
opcode: fix positional-only args (#4026)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -17,9 +17,9 @@ HAVE_ARGUMENT: int
|
||||
EXTENDED_ARG: int
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def stack_effect(opcode: int, oparg: Optional[int] = ..., *, jump: Optional[bool] = ...) -> int: ...
|
||||
def stack_effect(__opcode: int, __oparg: Optional[int] = ..., *, jump: Optional[bool] = ...) -> int: ...
|
||||
elif sys.version_info >= (3, 4):
|
||||
def stack_effect(opcode: int, oparg: Optional[int] = ...) -> int: ...
|
||||
def stack_effect(__opcode: int, __oparg: Optional[int] = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
hasnargs: List[int]
|
||||
|
||||
@@ -70,7 +70,6 @@ dataclasses.field
|
||||
dataclasses.replace
|
||||
decimal.Decimal.from_float
|
||||
decimal.setcontext
|
||||
dis.stack_effect
|
||||
email.message.MIMEPart.as_string
|
||||
enum.Enum._generate_next_value_
|
||||
functools.partialmethod.__get__
|
||||
@@ -101,7 +100,6 @@ multiprocessing.pool.CLOSE
|
||||
multiprocessing.pool.RUN
|
||||
multiprocessing.pool.TERMINATE
|
||||
multiprocessing.spawn._main
|
||||
opcode.stack_effect
|
||||
os.MFD_HUGE_32MB
|
||||
os.MFD_HUGE_512MB
|
||||
os.pipe2
|
||||
|
||||
Reference in New Issue
Block a user