Skip to main content
Version: 0.6

annotations

superduper.misc.annotations

Source code

extract_parameters​

extract_parameters(doc)
ParameterDescription
docSphinx-styled docstring. Docstring may have multiple lines

Extracts and organizes parameter descriptions from a Sphinx-styled docstring.

replace_parameters​

replace_parameters(doc,
placeholder: str = '!!!')
ParameterDescription
docSphinx-styled docstring.
placeholderPlaceholder to replace parameters with.

Replace parameters in a doc-string with a placeholder.

classproperty​

classproperty(func)
ParameterDescription
funcFunction to compute the value.

Decorator for creating a read-only class-level property.

lazy_classproperty​

lazy_classproperty(self,
func)
ParameterDescription
funcFunction to compute the value.

Descriptor that computes the value once per owner class.

It caches the computed value in a WeakKeyDictionary keyed by the owner.

SuperDuperDeprecationWarning​

SuperDuperDeprecationWarning(self,
/,
*args,
**kwargs)
ParameterDescription
args*args of DeprecationWarning
kwargs**kwargs of DeprecationWarning

Specialized Deprecation Warning for fine grained filtering control.