Delete yaml.CDangerLoader and yaml.CDangerDumper (#5990)

These no longer exist in PyYAML 4.2.
This commit is contained in:
Akuli
2021-09-01 10:50:30 +03:00
committed by GitHub
parent a9a612df98
commit 6307bfd421
2 changed files with 2 additions and 11 deletions

View File

@@ -1,12 +1,8 @@
yaml.CBaseDumper.__init__
yaml.CDangerDumper
yaml.CDangerLoader
yaml.CDumper.__init__
yaml.CEmitter
yaml.CParser
yaml.YAMLObjectMetaclass.__init__
yaml.constructor.FullConstructor.set_python_instance_state
yaml.cyaml.CBaseDumper.__init__
yaml.cyaml.CDangerDumper
yaml.cyaml.CDangerLoader
yaml.cyaml.CDumper.__init__

View File

@@ -1,12 +1,11 @@
from _typeshed import SupportsRead
from typing import IO, Any, Mapping, Sequence, Text, Union
from yaml.constructor import BaseConstructor, Constructor, FullConstructor, SafeConstructor, UnsafeConstructor
from yaml.constructor import BaseConstructor, FullConstructor, SafeConstructor, UnsafeConstructor
from yaml.events import Event
from yaml.nodes import Node
from yaml.representer import BaseRepresenter, Representer, SafeRepresenter
from yaml.representer import BaseRepresenter, SafeRepresenter
from yaml.resolver import BaseResolver, Resolver
from yaml.serializer import Serializer
from yaml.tokens import Token
_Readable = SupportsRead[Union[Text, bytes]]
@@ -39,8 +38,6 @@ class CFullLoader(CParser, FullConstructor, Resolver):
class CUnsafeLoader(CParser, UnsafeConstructor, Resolver):
def __init__(self, stream: str | bytes | _Readable) -> None: ...
class CDangerLoader(CParser, Constructor, Resolver): ... # undocumented
class CEmitter(object):
def __init__(
self,
@@ -78,5 +75,3 @@ class CBaseDumper(CEmitter, BaseRepresenter, BaseResolver):
class CDumper(CEmitter, SafeRepresenter, Resolver): ...
CSafeDumper = CDumper
class CDangerDumper(CEmitter, Serializer, Representer, Resolver): ... # undocumented