Skip to content

Commit

Permalink
fix(yaml): SafeConstructor.construct_scalar accept MappingNode (#13340
Browse files Browse the repository at this point in the history
)
  • Loading branch information
noirbizarre authored Dec 30, 2024
1 parent 03167c8 commit d634fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/PyYAML/yaml/constructor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit d634fc2

Please sign in to comment.