Skip to content

Improve yaml/constructor.pyi types #12404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 23, 2024
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
16 changes: 8 additions & 8 deletions stubs/PyYAML/yaml/constructor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down