mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Improve yaml/constructor.pyi types (#12404)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user