Skip to content

Commit

Permalink
TYP: fix type consistency in get_full_data return value
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed May 16, 2024
1 parent 8efd0f7 commit 5c63c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wxc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_version(
raise LookupError(f"Could not determine version metadata from {package_name!r}")


def get_full_data(name: str) -> dict:
def get_full_data(name: str) -> dict[str, str]:
data = defaultdict(str)
package_name, _, _ = name.partition(".")

Expand Down Expand Up @@ -188,6 +188,6 @@ def get_full_data(name: str) -> dict:
except LookupError:
pass

data["in_stdlib"] = package_name in sys.stdlib_module_names
data["in_stdlib"] = str(package_name in sys.stdlib_module_names)

return data

0 comments on commit 5c63c5e

Please sign in to comment.