Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/PyYAML/yaml/constructor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class BaseConstructor:
def get_data(self): ...
def get_single_data(self) -> Any: ...
def construct_document(self, node): ...
def construct_object(self, node, deep=False): ...
def construct_object(self, node, deep: bool = False): ...
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're looking at this there's probably a lot more low-hanging fruit, lots of missing annotations around here.

def construct_scalar(self, node: ScalarNode) -> str: ...
def construct_sequence(self, node: SequenceNode, deep: bool = False) -> list[Any]: ...
def construct_mapping(self, node: MappingNode, deep: bool = False) -> dict[Hashable, Any]: ...
def construct_pairs(self, node, deep=False): ...
def construct_pairs(self, node, deep: bool = False): ...
@classmethod
# Use typevars so we can have covariant behaviour in the parameter types
def add_constructor(cls, tag: str, constructor: Callable[[_L, _N], Any]) -> None: ...
Expand Down
Loading