Skip to content

Commit 3a9753e

Browse files
committed
correct typings for python 3.8. fix #10
1 parent aa5c1a8 commit 3a9753e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robotcode/language_server/robotframework/diagnostics/library_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ def source_or_origin(self) -> Optional[str]:
483483
def _process_inline_links(self, text: str) -> str:
484484
headers = [v.group(2) for v in self._headers.finditer(text)]
485485

486-
def repl(m: re.Match[str]) -> str:
486+
def repl(m: re.Match) -> str: # type: ignore
487487
if m.group(2) in headers:
488488
return f"[#{str(m.group(2)).replace(' ', '-')}|{str(m.group(2))}]"
489-
return m.group(0)
489+
return str(m.group(0))
490490

491491
return str(self._inline_link.sub(repl, text))
492492

0 commit comments

Comments
 (0)