class Error: (source)
Undocumented
Method | __init__ |
Represents an error found by stubtest. |
Method | get_description |
Returns a description of the error. |
Method | is_missing_stub |
Whether or not the error is for something missing from the stub. |
Method | is_positional_only_related |
Whether or not the error is for something being (or not being) positional-only. |
Instance Variable | message |
Undocumented |
Instance Variable | object_desc |
Undocumented |
Instance Variable | runtime_desc |
Undocumented |
Instance Variable | runtime_object |
Undocumented |
Instance Variable | stub_desc |
Undocumented |
Instance Variable | stub_object |
Undocumented |
Parameters | |
object_path:List[ | Location of the object with the error, e.g. ["module", "Class", "method"] |
message:str | Error message |
stub_object:MaybeMissing[ | The mypy node representing the stub |
runtime_object:MaybeMissing[ | Actual object obtained from the runtime |
stub_desc:Optional[ | Specialised description for the stub object, should you wish |
runtime_desc:Optional[ | Specialised description for the runtime object, should you wish |
Parameters | |
concise:bool | Whether to return a concise, one-line description |
Returns | |
str | Undocumented |