mock for autodoc
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Variable | logger |
Undocumented |
Class | _MockModule |
Used by autodoc_mock_imports. |
Class | _MockObject |
Used by autodoc_mock_imports. |
Class | MockFinder |
A finder for mocking. |
Class | MockLoader |
A loader for mocking. |
Function | _make_subclass |
Undocumented |
Function | ismock |
Check if the object is mocked. |
Function | mock |
Insert mock modules during context: |
Function | undecorate |
Unwrap mock if subject is decorated by mocked object. |
Undocumented
Parameters | |
name:str | Undocumented |
module:str | Undocumented |
superclass:Any | Undocumented |
attributes:Any | Undocumented |
decorator_args:Tuple | Undocumented |
Returns | |
Any | Undocumented |
Parameters | |
subject:Any | Undocumented |
Returns | |
bool | Undocumented |
Insert mock modules during context:
Parameters | |
modnames:List[ | Undocumented |
Returns | |
Generator[ | Undocumented |
Unwrap mock if subject is decorated by mocked object.
If not decorated, returns given subject itself.
Parameters | |
subject:_MockObject | Undocumented |
Returns | |
Any | Undocumented |