Skip to content

Commit

Permalink
Use Dict for type instead of dict (#262)
Browse files Browse the repository at this point in the history
This change is to fix a bug as dict is not compatible with Python 3.8
  • Loading branch information
f-ewald authored Nov 1, 2024
1 parent 377c70d commit 3631e50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/shiv/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.7"
__version__ = "1.0.8"
6 changes: 3 additions & 3 deletions src/shiv/bootstrap/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
import json
import os
from typing import Any, Optional
from typing import Any, Dict, Optional


def str_bool(v) -> bool:
Expand Down Expand Up @@ -35,7 +35,7 @@ def __init__(
entry_point: Optional[str] = None,
extend_pythonpath: bool = False,
prepend_pythonpath: Optional[str] = None,
hashes: Optional[dict[str, Any]] = None,
hashes: Optional[Dict[str, Any]] = None,
no_modify: bool = False,
reproducible: bool = False,
script: Optional[str] = None,
Expand All @@ -46,7 +46,7 @@ def __init__(
self.always_write_cache: bool = always_write_cache
self.build_id: Optional[str] = build_id
self.built_at: str = built_at
self.hashes: Optional[dict[str, Any]] = hashes or {}
self.hashes: Optional[Dict[str, Any]] = hashes or {}
self.no_modify: bool = no_modify
self.reproducible: bool = reproducible
self.preamble: Optional[str] = preamble
Expand Down

0 comments on commit 3631e50

Please sign in to comment.