mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import datetime
|
||||
from typing import Any, List, Mapping, Optional, Set, Tuple, Union
|
||||
from typing import Any, List, Mapping, Set, Tuple
|
||||
|
||||
__version__: str
|
||||
|
||||
def parse(
|
||||
date_string: str,
|
||||
date_formats: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
|
||||
languages: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
|
||||
locales: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
|
||||
region: Optional[str] = ...,
|
||||
settings: Optional[Mapping[str, Any]] = ...,
|
||||
) -> Optional[datetime.datetime]: ...
|
||||
date_formats: List[str] | Tuple[str] | Set[str] | None = ...,
|
||||
languages: List[str] | Tuple[str] | Set[str] | None = ...,
|
||||
locales: List[str] | Tuple[str] | Set[str] | None = ...,
|
||||
region: str | None = ...,
|
||||
settings: Mapping[str, Any] | None = ...,
|
||||
) -> datetime.datetime | None: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
|
||||
Reference in New Issue
Block a user