Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthasheshpatel committed Oct 29, 2022
1 parent 45992fc commit e670b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_design/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def findall(node: Element) -> Callable[..., Iterable[Element]]:
return getattr(node, "findall", node.traverse)


def read_text(module: str, filename: str) -> str:
def read_text(module: resources.Package, filename: str) -> str:
has_files = hasattr(resources, "files")
if has_files:
return resources.files(module).joinpath(filename).read_text()
Expand Down

0 comments on commit e670b73

Please sign in to comment.