LazyImport#

class LazyImport(module, attr)#

Bases: object

Reference to an object that should be imported only when used.

Parameters:
module: str#
attr: str#
load()#

Import and return the referenced object.

Return type:

Any