pydoc_fork.inspector.module_utils
index
../../pydoc_fork/inspector/module_utils.py

Module Manipulation

 
Modules
 
builtins
importlib
logging
os
sys

 
`from` Modules
 
pydoc_fork.inspector.custom_types

 
Classes
 
builtins.Exception(builtins.BaseException)
ImportTimeError(builtins.Exception)

 
class ImportTimeError(builtins.Exception)
ImportTimeError(filename: Optional[str], exc_info: Tuple[Any, Any, 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: Optional[str], exc_info: Tuple[Any, Any, Any]) -> None
Set up
__str__(self) -> str
For display

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:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception 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, 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)>