mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Change numerous default values to ... (#1722)
This is the convention, and some default values (e.g. strings) apparently break pytype.
This commit is contained in:
committed by
Matthias Kramm
parent
66821993f6
commit
54dd6ba27c
@@ -66,7 +66,7 @@ def cleandoc(doc: str) -> str: ...
|
||||
#
|
||||
def signature(callable: Callable[..., Any],
|
||||
*,
|
||||
follow_wrapped: bool = True) -> 'Signature': ...
|
||||
follow_wrapped: bool = ...) -> 'Signature': ...
|
||||
|
||||
class Signature:
|
||||
def __init__(self,
|
||||
@@ -93,7 +93,7 @@ class Signature:
|
||||
def from_callable(cls,
|
||||
obj: Callable[..., Any],
|
||||
*,
|
||||
follow_wrapped: bool = True) -> 'Signature': ...
|
||||
follow_wrapped: bool = ...) -> 'Signature': ...
|
||||
|
||||
# The name is the same as the enum's name in CPython
|
||||
class _ParameterKind: ...
|
||||
@@ -229,13 +229,13 @@ FrameInfo = NamedTuple('FrameInfo', [('frame', FrameType),
|
||||
])
|
||||
|
||||
# TODO make the frame type more specific
|
||||
def getframeinfo(frame: Any, context: int = 1) -> FrameInfo: ...
|
||||
def getouterframes(frame: Any, context: int = 1) -> List[FrameInfo]: ...
|
||||
def getinnerframes(traceback: TracebackType, context: int = 1) -> List[FrameInfo]:
|
||||
def getframeinfo(frame: Any, context: int = ...) -> FrameInfo: ...
|
||||
def getouterframes(frame: Any, context: int = ...) -> List[FrameInfo]: ...
|
||||
def getinnerframes(traceback: TracebackType, context: int = ...) -> List[FrameInfo]:
|
||||
...
|
||||
def currentframe() -> Optional[FrameType]: ...
|
||||
def stack(context: int = 1) -> List[FrameInfo]: ...
|
||||
def trace(context: int = 1) -> List[FrameInfo]: ...
|
||||
def stack(context: int = ...) -> List[FrameInfo]: ...
|
||||
def trace(context: int = ...) -> List[FrameInfo]: ...
|
||||
|
||||
#
|
||||
# Fetching attributes statically
|
||||
|
||||
Reference in New Issue
Block a user