Skip to content

Commit

Permalink
Code climate: markup_renderer: fix all mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw committed Jul 21, 2024
1 parent e823f8c commit bdb4da1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions strictdoc/export/html/renderers/markup_renderer.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -24,7 +23,7 @@
class MarkupRenderer:
@staticmethod
def create(
markup,
markup: Optional[str],
traceability_index: TraceabilityIndex,
link_renderer: LinkRenderer,
html_templates: HTMLTemplates,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bdb4da1

Please sign in to comment.