Skip to content

Commit

Permalink
Update nikola/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
fondbcn and felixfontein committed Jan 30, 2024
1 parent a4e3e64 commit 7efa0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def __repr__(self):
sort_keys=True))


def pkg_resources(package, resource):
def pkg_resources(package: str, resource: str) -> str:
"""Return the resource based on the python version."""
if sys.version_info.minor <= 8:
with resources.path(package, resource) as path:
Expand Down

0 comments on commit 7efa0c0

Please sign in to comment.