Skip to content

Commit

Permalink
Corrected docstring of factory
Browse files Browse the repository at this point in the history
  • Loading branch information
NikosDelijohn committed Oct 10, 2024
1 parent b3ca434 commit 5d95bb5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/testcrush/grammars/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,13 @@ class TraceTransformerFactory:
"""
Factory pattern for trace transformers and the corresponding grammars.
To be used as ``transformer, grammar = TraceTransformerFactory("ProcessorString")``
To be used as:
.. code-block:: python
factory = TraceTransformerFactory
transformer, grammar = TraceTransformerFactory("ProcessorString")
"""
_current_directory = pathlib.Path(__file__).parent
_transformers = {
Expand Down

0 comments on commit 5d95bb5

Please sign in to comment.