Inspect

Note

Private module

Inspect package of ispec.

Module containing functions used to inspect methods and classes.

ispec._inspect.get_methods(cls: type[object]) list[collections.abc.Callable[..., Any]][source]

Return the list of the methods declared in a class.

Parameters:

cls (type[object]) –

Return type:

list[Callable[..., Any]]

ispec._inspect.get_signature(obj: collections.abc.Callable[[...], Any]) inspect.Signature[source]

Encapsulate inspect.signature.

Parameters:

obj (Callable[..., Any]) –

Return type:

Signature

ispec._inspect.is_abstract(method: collections.abc.Callable[[...], Any]) bool[source]

Return True if method is an abstract method (abc), otherwise False.

Parameters:

method (Callable[..., Any]) –

Return type:

bool

ispec._inspect.is_bound(method: collections.abc.Callable[[...], Any]) bool[source]

Return True if method is a bound-method, otherwise False.

Parameters:

method (Callable[..., Any]) –

Return type:

bool