mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
Stdlib: correct many parameter names (#9815)
This commit is contained in:
1 parent
4b755c7034
commit
257e287fec
30 files changed
+382
-353
No files matched your search
@@ -22,8 +22,13 @@ class ContextVar(Generic[_T]):
|
||||
def name(self) -> str: ...
|
||||
@overload
|
||||
def get(self) -> _T: ...
|
||||
@overload
|
||||
def get(self, default: _D | _T) -> _D | _T: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@overload
|
||||
def get(self, default: _D | _T) -> _D | _T: ...
|
||||
else:
|
||||
@overload
|
||||
def get(self, __default: _D | _T) -> _D | _T: ...
|
||||
|
||||
def set(self, __value: _T) -> Token[_T]: ...
|
||||
def reset(self, __token: Token[_T]) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
Reference in new issue
Block a user