Skip to content

Commit

Permalink
Fix mypy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Feb 11, 2024
1 parent a688592 commit f245cd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/tool/tag2link.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re
import xml.sax
from typing import Any, Dict, List
from xml.sax.xmlreader import AttributesImpl


class Exact(xml.sax.handler.ContentHandler):
Expand All @@ -16,7 +17,7 @@ def unposix(self, regex: str) -> str:
regex = regex.replace("\p{Digit}", "[0-9]") # noqa
return regex

def startElement(self, name: str, attrs: Dict[str, str]) -> None:
def startElement(self, name: str, attrs: AttributesImpl) -> None:
if name == "rule":
self.rules.append({"conditions": [], "link": None})
elif name == "condition":
Expand Down

0 comments on commit f245cd7

Please sign in to comment.