pydoc_fork

pydoc_fork.inspector.module_utils

 

Module Manipulation

Modules

`from` Modules

Classes

builtins.Exception(builtins.BaseException)
ImportTimeError(builtins.Exception)
ImportTimeError(filename: str | None, exc_info: tuple[typing.Any, typing.Any, typing.Any]) -> None
 
Errors that occurred while trying to import something to document it.
 
Method resolution order:
ImportTimeError
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, filename: str | None, exc_info: tuple[typing.Any, typing.Any, typing.Any]) -> None
Set up
__str__(self) -> str
For display

Data and other attributes defined here:
__firstlineno__ = 25
__static_attributes__ = ('exc', 'filename', 'tb', 'value')

Static methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__reduce__(self, /)
__repr__(self, /)
Return repr(self).
__setstate__(self, state, /)
add_note(self, note, /)
Add a note to the exception
with_traceback(self, tb, /)
Set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
__context__
__suppress_context__
__traceback__
args

Functions

cast(typ, val)
Cast a value to a type.
 
This returns the value unchanged.  To the type checker this
signals that the return value has the designated type, but at
runtime we intentionally don't check anything (we want this
to be as fast as possible).
importfile(path: str) -> pydoc_fork.inspector.custom_types.TypeLike
Import a Python source file or compiled file given its path.
ispackage(path: str) -> bool
Guess whether a path refers to a package directory.
locate(path: str, force_load: bool = False) -> Any
Locate an object by name or dotted path, importing as necessary.
safe_import(path: str, force_load: bool = False, cache: dict[str, typing.Any] = {}) -> Any
Import a module; handle errors; return None if the module isn't found.
 
If the module *is* found but an exception occurs, it's wrapped in an
ErrorDuringImport exception and reraised.  Unlike __import__, if a
package path is specified, the module at the end of the path is returned,
not the package at the beginning.  If the optional 'force_load' argument
is True, we reload the module from disk (unless it's a dynamic extension).

Data

LOGGER = <Logger pydoc_fork.inspector.module_utils (WARNING)>