mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 22:31:26 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from typing import Any, Pattern, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from . import resolver as resolver # Help mypy a bit; this is implied by loader and dumper
|
||||
from .constructor import BaseConstructor
|
||||
@@ -16,7 +17,7 @@ from .resolver import BaseResolver
|
||||
from .tokens import *
|
||||
|
||||
# FIXME: the functions really return str if encoding is None, otherwise bytes. Waiting for python/mypy#5621
|
||||
_Yaml = Any
|
||||
_Yaml: TypeAlias = Any
|
||||
|
||||
__with_libyaml__: Any
|
||||
__version__: str
|
||||
|
||||
Reference in New Issue
Block a user