Skip to content

opto.trace.projections.code_projections

BlackCodeFormatter

BlackCodeFormatter(*args, **kwargs)

Bases: Projection

project

project(x: str) -> str

DocstringProjection

DocstringProjection(docstring: str)

Bases: Projection

Projection that formats docstrings.

docstring instance-attribute

docstring = docstring

project

project(x: str) -> str

Replace the docstring in the code wit the stored docstring.