From c880a29209c47e6eef17ed7d41a84c0fe1e163f8 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 9 May 2026 14:43:20 -0700 Subject: [PATCH] Add missing type hints in pyyaml.constructor This is the same as 84682a1d which missed these for some reason. --- stubs/PyYAML/yaml/constructor.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/PyYAML/yaml/constructor.pyi b/stubs/PyYAML/yaml/constructor.pyi index b024ba42e95c..cfbe7828b019 100644 --- a/stubs/PyYAML/yaml/constructor.pyi +++ b/stubs/PyYAML/yaml/constructor.pyi @@ -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): ... 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: ...