mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
fix(yaml): SafeConstructor.construct_scalar accept MappingNode (#13340)
This commit is contained in:
@@ -39,7 +39,7 @@ class BaseConstructor:
|
||||
def add_multi_constructor(cls, tag_prefix, multi_constructor): ...
|
||||
|
||||
class SafeConstructor(BaseConstructor):
|
||||
def construct_scalar(self, node: ScalarNode) -> str: ...
|
||||
def construct_scalar(self, node: ScalarNode | MappingNode) -> str: ...
|
||||
def flatten_mapping(self, node: MappingNode) -> None: ...
|
||||
def construct_mapping(self, node: MappingNode, deep: bool = False) -> dict[Hashable, Any]: ...
|
||||
def construct_yaml_null(self, node: ScalarNode) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user