mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-06 11:33:24 +08:00
Change more defaults to ... (#1729)
* codemod ': Any = None' ': Any = ...' * codemod ': (Union|Optional)([^=]+)\s+=\s+-?\d+' ': \1\2 = ...' * codemod ': (Union|Optional)([^=]+)\s*=\s*-?(None|False|True)' ': \1\2 = ...' * codemod ': (int|float|bool)\s*=\s*-?\d+' ': \1 = ...' * codemod ': (bool)\s*=\s*(False|True)' ': \1 = ...' * codemod ': Any\s*=\s*(False|True|None)' ': Any = ...'
This commit is contained in:
committed by
Matthias Kramm
parent
0080017d02
commit
83ca997140
@@ -115,7 +115,7 @@ class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]):
|
||||
@abstractmethod
|
||||
def throw(self, typ: Type[BaseException], val: Optional[BaseException] = ...,
|
||||
# TODO: tb should be TracebackType but that's defined in types
|
||||
tb: Any = None) -> _T_co: ...
|
||||
tb: Any = ...) -> _T_co: ...
|
||||
|
||||
@abstractmethod
|
||||
def close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user