class Documentable:
Known subclasses: pydoctor.model.CanContainImportsDocumentable
, pydoctor.model.Inheritable
, pydoctor.test.test_sphinx.UnknownType
An object that can be documented.
The interface is a bit ridiculously wide.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | docsources |
Objects that can be considered as a source of documentation. |
Method | expandName |
Return a fully qualified name for the possibly-dotted `name`. |
Method | fullName |
Undocumented |
Method | reparent |
Undocumented |
Method | report |
Log an error or warning about this documentable object. |
Method | resolveName |
Return the object named by "name" (using Python's lookup rules) in this context, if any is known to pydoctor. |
Method | setDocstring |
Undocumented |
Method | setLineNumber |
Undocumented |
Method | setup |
Undocumented |
Class Variable | kind |
Undocumented |
Class Variable | parsed_docstring |
Undocumented |
Class Variable | parsed_type |
Undocumented |
Instance Variable | contents |
Undocumented |
Instance Variable | docstring |
The object's docstring. But also see docsources. |
Instance Variable | docstring_lineno |
Undocumented |
Instance Variable | linenumber |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | parentMod |
Undocumented |
Instance Variable | source_path |
Undocumented |
Instance Variable | sourceHref |
Undocumented |
Instance Variable | system |
The system the object is part of. |
Property | description |
A string describing our source location to the user. |
Property | doctarget |
Undocumented |
Property | isPrivate |
Is this object considered private API? |
Property | isVisible |
Is this object so private as to be not shown at all? |
Property | module |
This object's Module . |
Property | page_object |
The documentable to which the page we're documented on belongs. For example methods are documented on the page of their class, functions are documented in their module's page etc. |
Property | privacyClass |
How visible this object should be. |
Property | url |
Relative URL at which the documentation for this Documentable can be found. |
Method | _handle_reparenting_post |
Undocumented |
Method | _handle_reparenting_pre |
Undocumented |
Method | _localNameToFullName |
Undocumented |
Instance Variable | _deprecated_info |
Undocumented |
Undocumented
Parameters | |
system:System | Undocumented |
name:str | Undocumented |
parent:Optional[ | Undocumented |
source_path:Optional[ | Undocumented |
pydoctor.model.Inheritable
Objects that can be considered as a source of documentation.
The motivating example for having multiple sources is looking at a superclass' implementation of a method for documentation for a subclass'.
Returns | |
Iterator[ | Undocumented |
Return a fully qualified name for the possibly-dotted `name`.
To explain what this means, consider the following modules:
mod1.py:
from external_location import External class Local: pass
mod2.py:
from mod1 import External as RenamedExternal import mod1 as renamed_mod class E: pass
In the context of mod2.E, expandName("RenamedExternal") should be "external_location.External" and expandName("renamed_mod.Local") should be "mod1.Local".
Parameters | |
name:str | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
new_parent:Module | Undocumented |
new_name:str | Undocumented |
Parameters | |
descr:str | Undocumented |
section:str | Undocumented |
lineno_offset:int | Undocumented |
Parameters | |
name:str | Undocumented |
Returns | |
Optional[ | Undocumented |
str
=
A string describing our source location to the user.
If this module's code was read from a file, this returns its file path. In other cases, such as during unit testing, the full module name is returned.
bool
=
Is this object considered private API?
This is just a simple helper which defers to self.privacyClass.
bool
=
Is this object so private as to be not shown at all?
This is just a simple helper which defers to self.privacyClass.
pydoctor.model.Module
This object's Module
.
For modules, this returns the object itself, otherwise the module containing the object is returned.