class documentation
class Error: (source)
Undocumented
Method | __init__ |
Represents an error found by stubtest. |
Method | get |
Returns a description of the error. |
Method | is |
Whether or not the error is for something missing from the stub. |
Method | is |
Whether or not the error is for something being (or not being) positional-only. |
Instance Variable | message |
Undocumented |
Instance Variable | object |
Undocumented |
Instance Variable | object |
Undocumented |
Instance Variable | runtime |
Undocumented |
Instance Variable | runtime |
Undocumented |
Instance Variable | stub |
Undocumented |
Instance Variable | stub |
Undocumented |
def __init__(self, object_path:
list[ str]
, message: str
, stub_object: MaybeMissing[ nodes.Node]
, runtime_object: MaybeMissing[ Any]
, *, stub_desc: str|None
= None, runtime_desc: str|None
= None):
(source)
¶
Represents an error found by stubtest. :param object_path: Location of the object with the error, e.g. ``["module", "Class", "method"]`` :param message: Error message :param stub_object: The mypy node representing the stub :param runtime_object: Actual object obtained from the runtime :param stub_desc: Specialised description for the stub object, should you wish :param runtime_desc: Specialised description for the runtime object, should you wish
Returns a description of the error. :param concise: Whether to return a concise, one-line description