mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
stdlib: Add defaults for positional-only parameters (#9655)
This commit is contained in:
@@ -49,9 +49,9 @@ HAVE_ARGUMENT: Literal[90]
|
||||
EXTENDED_ARG: Literal[144]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def stack_effect(__opcode: int, __oparg: int | None = ..., *, jump: bool | None = None) -> int: ...
|
||||
def stack_effect(__opcode: int, __oparg: int | None = None, *, jump: bool | None = None) -> int: ...
|
||||
|
||||
else:
|
||||
def stack_effect(__opcode: int, __oparg: int | None = ...) -> int: ...
|
||||
def stack_effect(__opcode: int, __oparg: int | None = None) -> int: ...
|
||||
|
||||
hasnargs: list[int]
|
||||
|
||||
Reference in New Issue
Block a user