Skip to content

Commit

Permalink
Merge pull request strictdoc-project#1927 from strictdoc-project/stan…
Browse files Browse the repository at this point in the history
…islaw/fix_type_issue

Code climate: markup_renderer: fix all mypy issues
  • Loading branch information
stanislaw authored Jul 21, 2024
2 parents e823f8c + bdb4da1 commit d9264ca
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 d9264ca

Please sign in to comment.