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 27, 2024
1 parent 38be4ef commit 78cb323
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:
return str(resources.path(package, resource))
Expand Down

0 comments on commit 78cb323

Please sign in to comment.