From bdb4da1322dfed9b02bb313160404d5d6e828218 Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Sun, 21 Jul 2024 12:38:46 +0200 Subject: [PATCH] Code climate: markup_renderer: fix all mypy issues --- strictdoc/export/html/renderers/markup_renderer.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/strictdoc/export/html/renderers/markup_renderer.py b/strictdoc/export/html/renderers/markup_renderer.py index 271de3adc..dd2c99f44 100644 --- a/strictdoc/export/html/renderers/markup_renderer.py +++ b/strictdoc/export/html/renderers/markup_renderer.py @@ -1,4 +1,3 @@ -# mypy: disable-error-code="attr-defined,no-untyped-call,no-untyped-def,var-annotated" from typing import Dict, Optional, Tuple, Union from strictdoc.backend.sdoc.models.anchor import Anchor @@ -24,7 +23,7 @@ class MarkupRenderer: @staticmethod def create( - markup, + markup: Optional[str], traceability_index: TraceabilityIndex, link_renderer: LinkRenderer, html_templates: HTMLTemplates, @@ -56,7 +55,11 @@ def create( def __init__( self, - fragment_writer, + fragment_writer: Union[ + RstToHtmlFragmentWriter, + HTMLFragmentWriter, + TextToHtmlWriter, + ], traceability_index: TraceabilityIndex, link_renderer: LinkRenderer, html_templates: HTMLTemplates,