mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -13,7 +13,7 @@ else:
|
||||
|
||||
class TomlDecodeError(Exception): ...
|
||||
|
||||
def load(f: Union[_PathLike, List[Text], IO[str]], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
|
||||
def load(f: _PathLike | List[Text] | IO[str], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
|
||||
def loads(s: Text, _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
|
||||
def dump(o: Mapping[str, Any], f: SupportsWrite[str]) -> str: ...
|
||||
def dumps(o: Mapping[str, Any]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user