mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import abc
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Generic, ItemsView, KeysView, Mapping, Optional, Type, TypeVar, Union, ValuesView
|
||||
from typing import Any, Callable, Dict, Generic, ItemsView, KeysView, Mapping, Type, TypeVar, Union, ValuesView
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_U = TypeVar("_U")
|
||||
@@ -26,10 +26,10 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
|
||||
def __delitem__(self, k: NoReturn) -> None: ...
|
||||
|
||||
def TypedDict(typename: str, fields: Dict[str, Type[Any]], total: bool = ...) -> Type[Dict[str, Any]]: ...
|
||||
def Arg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
|
||||
def DefaultArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
|
||||
def NamedArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
|
||||
def DefaultNamedArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
|
||||
def Arg(type: _T = ..., name: str | None = ...) -> _T: ...
|
||||
def DefaultArg(type: _T = ..., name: str | None = ...) -> _T: ...
|
||||
def NamedArg(type: _T = ..., name: str | None = ...) -> _T: ...
|
||||
def DefaultNamedArg(type: _T = ..., name: str | None = ...) -> _T: ...
|
||||
def VarArg(type: _T = ...) -> _T: ...
|
||||
def KwArg(type: _T = ...) -> _T: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user