Let us walk on the 3-isogeny graph
|
Data Structures | |
class | Inspect |
Functions | |
str | _first_paragraph (str doc) |
Tuple[type,...] | get_object_types_mro (Union[object, Type[Any]] obj) |
Collection[str] | get_object_types_mro_as_strings (object obj) |
bool | is_object_one_of_types (object obj, Collection[str] fully_qualified_types_names) |
|
protected |
Get the first paragraph from a docstring.
Definition at line 17 of file _inspect.py.
References i.
Referenced by Inspect._get_formatted_doc().
Tuple[type, ...] get_object_types_mro | ( | Union[object, Type[Any]] | obj | ) |
Returns the MRO of an object's class, or of the object itself if it's a class.
Definition at line 238 of file _inspect.py.
References i.
Referenced by pip._vendor.rich._inspect.get_object_types_mro_as_strings().
Collection[str] get_object_types_mro_as_strings | ( | object | obj | ) |
Returns the MRO of an object's class as full qualified names, or of the object itself if it's a class. Examples: `object_types_mro_as_strings(JSONDecoder)` will return `['json.decoder.JSONDecoder', 'builtins.object']`
Definition at line 247 of file _inspect.py.
References pip._vendor.rich._inspect.get_object_types_mro().
Referenced by pip._vendor.rich._inspect.is_object_one_of_types().
bool is_object_one_of_types | ( | object | obj, |
Collection[str] | fully_qualified_types_names | ||
) |
Returns `True` if the given object's class (or the object itself, if it's a class) has one of the fully qualified names in its MRO.
Definition at line 260 of file _inspect.py.
References pip._vendor.rich._inspect.get_object_types_mro_as_strings().