Skip to content

Commit fe71834

Browse files
committed
Fix some type hint syntax errors in older python versions
1 parent 263d17c commit fe71834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/markdown2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ class LinkProcessor(Extra):
25092509
order = (Stage.ITALIC_AND_BOLD,), (Stage.ESCAPE_SPECIAL,)
25102510
options: _LinkProcessorExtraOpts
25112511

2512-
def __init__(self, md: Markdown, options: Dict | None):
2512+
def __init__(self, md: Markdown, options: Optional[dict]):
25132513
options = options or {}
25142514
super().__init__(md, options)
25152515

@@ -3247,7 +3247,7 @@ class MarkdownFileLinks(LinkProcessor):
32473247
order = (Stage.LINKS,), (Stage.LINK_DEFS,)
32483248
options: _MarkdownFileLinksExtraOpts
32493249

3250-
def __init__(self, md: Markdown, options: Dict | None):
3250+
def __init__(self, md: Markdown, options: Optional[dict]):
32513251
# override LinkProcessor defaults
32523252
options = {'tags': ['a'], 'ref': False, **(options or {})}
32533253
super().__init__(md, options)

0 commit comments

Comments
 (0)