Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 11, 2025
1 parent aafc857 commit 5de3113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sphinx_licenseinfo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def run(self) -> List[docutils.nodes.Node]:

license_files = sorted(f.name for f in distro.path.glob("LICEN[CS]E*"))
if distro.path.joinpath("licenses").is_dir():
license_files.extend(sorted(distro.path.joinpath("licenses").iterdir()))
license_files.extend(sorted(map(str, distro.path.joinpath("licenses").iterdir())))

if not license_files:
return self.problematic(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Iterator, cast

# 3rd party
import bs4.element # type: ignore[import]
import bs4.element
import docutils
import handy_archives
import pychoosealicense as pychoosealicense
Expand Down Expand Up @@ -87,12 +87,12 @@ def check_html_output(
) -> None:

code: bs4.element.Tag
for code in page.find_all("code", attrs={"class": "sig-prename descclassname"}):
for code in page.find_all("code", attrs={"class": "sig-prename descclassname"}): # type: ignore[assignment]
first_child = code.contents[0]
if isinstance(first_child, bs4.element.Tag):
code.contents = [first_child.contents[0]]

for code in page.find_all("code", attrs={"class": "sig-name descname"}):
for code in page.find_all("code", attrs={"class": "sig-name descname"}): # type: ignore[assignment]
first_child = code.contents[0]
if isinstance(first_child, bs4.element.Tag):
code.contents = [first_child.contents[0]]
Expand Down

0 comments on commit 5de3113

Please sign in to comment.