diff --git a/stubs/PyYAML/yaml/constructor.pyi b/stubs/PyYAML/yaml/constructor.pyi index 46374d9061a9..c79680240b31 100644 --- a/stubs/PyYAML/yaml/constructor.pyi +++ b/stubs/PyYAML/yaml/constructor.pyi @@ -73,21 +73,21 @@ class FullConstructor(SafeConstructor): def construct_python_long(self, node): ... def construct_python_complex(self, node): ... def construct_python_tuple(self, node): ... - def find_python_module(self, name, mark, unsafe=False): ... - def find_python_name(self, name, mark, unsafe=False): ... + def find_python_module(self, name: str, mark, unsafe: bool = False): ... + def find_python_name(self, name: str, mark, unsafe: bool = False): ... def construct_python_name(self, suffix, node): ... def construct_python_module(self, suffix, node): ... - def make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False): ... - def set_python_instance_state(self, instance, state, unsafe: bool = False) -> None: ... + def make_python_instance(self, suffix, node, args=None, kwds=None, newobj: bool = False, unsafe: bool = False): ... + def set_python_instance_state(self, instance: Any, state, unsafe: bool = False) -> None: ... def construct_python_object(self, suffix, node): ... def construct_python_object_apply(self, suffix, node, newobj=False): ... def construct_python_object_new(self, suffix, node): ... class UnsafeConstructor(FullConstructor): - def find_python_module(self, name, mark): ... - def find_python_name(self, name, mark): ... - def make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False): ... - def set_python_instance_state(self, instance, state): ... + def find_python_module(self, name: str, mark): ... # type: ignore[override] + def find_python_name(self, name: str, mark): ... # type: ignore[override] + def make_python_instance(self, suffix: str, node, args=None, kwds=None, newobj: bool = False): ... # type: ignore[override] + def set_python_instance_state(self, instance: Any, state): ... # type: ignore[override] class Constructor(SafeConstructor): def construct_python_str(self, node): ...