From 3231ffa620dde72db3ef00cf055a5575dc437d61 Mon Sep 17 00:00:00 2001 From: Nick Deligiannis Date: Thu, 10 Oct 2024 14:37:37 +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..6c2e686 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 = {