Skip to content

Commit ec45a9b

Browse files
committed
ci: Fix warnings
1 parent a938528 commit ec45a9b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

duties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def pyprefix(title: str) -> str:
3535
def _get_changelog_version() -> str:
3636
changelog_version_re = re.compile(r"^## \[(\d+\.\d+\.\d+)\].*$")
3737
with Path(__file__).parent.joinpath("CHANGELOG.md").open("r", encoding="utf8") as file:
38-
return next(filter(bool, map(changelog_version_re.match, file))).group(1) # ty: ignore[invalid-argument-type,unresolved-attribute]
38+
return next(filter(bool, map(changelog_version_re.match, file))).group(1) # ty: ignore[unresolved-attribute]
3939

4040

4141
@duty

scripts/get_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_version() -> str:
2222
if scm_version.version <= Version("0.1"): # Missing Git tags?
2323
with suppress(OSError, StopIteration): # noqa: SIM117
2424
with _changelog.open("r", encoding="utf8") as file:
25-
match = next(filter(None, map(_changelog_version_re.match, file))) # ty: ignore[invalid-argument-type]
25+
match = next(filter(None, map(_changelog_version_re.match, file)))
2626
scm_version = scm_version._replace(version=Version(match.group(1)))
2727
return default_version_formatter(scm_version)
2828

src/mkdocstrings/_internal/handlers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def do_convert_markdown(
376376
if BacklinksTreeProcessor.name in treeprocessors:
377377
treeprocessors[BacklinksTreeProcessor.name].initial_id = None
378378
if AutorefsInlineProcessor.name in self.md.inlinePatterns:
379-
self.md.inlinePatterns[AutorefsInlineProcessor.name].hook = None
379+
self.md.inlinePatterns[AutorefsInlineProcessor.name].hook = None # ty: ignore[unresolved-attribute]
380380
self.md.reset()
381381
_markdown_conversion_layer -= 1
382382

0 commit comments

Comments
 (0)