-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
loader.pyi
27 lines (19 loc) · 1.12 KB
/
loader.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from typing_extensions import TypeAlias
from yaml.composer import Composer
from yaml.constructor import BaseConstructor, Constructor, FullConstructor, SafeConstructor
from yaml.parser import Parser
from yaml.reader import Reader
from yaml.resolver import BaseResolver, Resolver
from yaml.scanner import Scanner
from .reader import _ReadStream
_Loader: TypeAlias = Loader | BaseLoader | FullLoader | SafeLoader | UnsafeLoader # noqa: Y047 # Used in other modules
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
def __init__(self, stream: _ReadStream) -> None: ...
class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver):
def __init__(self, stream: _ReadStream) -> None: ...
class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
def __init__(self, stream: _ReadStream) -> None: ...
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
def __init__(self, stream: _ReadStream) -> None: ...
class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
def __init__(self, stream: _ReadStream) -> None: ...