Miscellaneous utilities for the HTML writer.
Class |
|
A case-insensitive ``dict``-like object. Implements all methods and operations of ``collections.MutableMapping`` as well as dict's ``copy``. Also provides ``lower_items``. All keys are expected to be strings... |
Class |
|
epydoc2stan bridge. |
Function | alphabetical |
Sort by privacy, kind and fullname. Callable to use as the value of standard library's sorted function key argument. |
Function | class |
Returns the members as well as the inherited members of a class. |
Function | css |
A short, lower case description for use as a CSS class in HTML. Includes the kind and privacy. |
Function | inherited |
Returns only the inherited members of a class, as a plain list. |
Function | nested |
Helper function to retreive the complete list of base classes chains (represented by tuples) for a given Class. A chain of classes is used to compute the member inheritence from the first element to the last element of the chain. |
Function | objects |
Function to craft a callable to use as the value of standard library's sorted function key argument such that the objects are sorted by: Privacy, Kind first, then by Name or Linenumber depending on order... |
Function | overriding |
Helper function to retreive the subclasses that override the given name from the parent class object. |
Function | package |
Get (namespace) package source code URLs, i.e. hosted on github. |
Function | source |
Sort by privacy, kind and linenumber. Callable to use as the value of standard library's sorted function key argument. |
Function | srclink |
Get object source code URL, i.e. hosted on github. |
Function | templatefile |
Deprecated: can be removed once Twisted stops patching this. |
Function | unmasked |
Helper function to reteive the list of inherited children given a base classes chain (As yielded by nested_bases ). The returned members are inherited from the Class listed first in the chain to the Class listed last: they are not overriden in between. |
Function | _map |
Undocumented |
Type Variable | _VT |
Undocumented |
Sort by privacy, kind and fullname. Callable to use as the value of standard library's sorted
function key argument.
model.Class
) -> list[ tuple[ tuple[ model.Class, ...], Sequence[ model.Documentable]]]
:
(source)
¶
Returns the members as well as the inherited members of a class.
Returns | |
list[ | Tuples of tuple: inherited_via:Tuple[model.Class, ...], attributes:Sequence[model.Documentable]. |
Helper function to retreive the complete list of base classes chains (represented by tuples) for a given Class. A chain of classes is used to compute the member inheritence from the first element to the last element of the chain.
The first yielded chain only contains the Class itself.
Then for each of the super-classes:
- the next yielded chain contains the super class and the class itself,
- the the next yielded chain contains the super-super class, the super class and the class itself, etc...
Literal[ 'alphabetical', 'source']
) -> Callable[ [ model.Documentable], tuple[ Any, ...]]
:
(source)
¶
Function to craft a callable to use as the value of standard library's sorted
function key argument such that the objects are sorted by: Privacy, Kind first, then by Name or Linenumber depending on order argument.
Example:
children = sorted((o for o in ob.contents.values() if o.isVisible), key=objects_order("alphabetical"))
model.Class
, name: str
, firstcall: bool
= True) -> Iterator[ model.Class]
:
(source)
¶
Helper function to retreive the subclasses that override the given name from the parent class object.
Sort by privacy, kind and linenumber. Callable to use as the value of standard library's sorted
function key argument.
Helper function to reteive the list of inherited children given a base classes chain (As yielded by nested_bases
). The returned members are inherited from the Class listed first in the chain to the Class listed last: they are not overriden in between.