From 5d95bb5c027a413fd701fde851efc3ea7f34e95e Mon Sep 17 00:00:00 2001 From: Nick Deligiannis Date: Thu, 10 Oct 2024 13:38:44 +0300 Subject: [PATCH] Corrected docstring of factory --- src/testcrush/grammars/transformers.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/testcrush/grammars/transformers.py b/src/testcrush/grammars/transformers.py index efc8402..b62da09 100755 --- a/src/testcrush/grammars/transformers.py +++ b/src/testcrush/grammars/transformers.py @@ -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 = {