Skip to content

Commit 3631e50

Browse files
authored
Use Dict for type instead of dict (#262)
This change is to fix a bug as dict is not compatible with Python 3.8
1 parent 377c70d commit 3631e50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/shiv/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.7"
1+
__version__ = "1.0.8"

src/shiv/bootstrap/environment.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
import json
66
import os
7-
from typing import Any, Optional
7+
from typing import Any, Dict, Optional
88

99

1010
def str_bool(v) -> bool:
@@ -35,7 +35,7 @@ def __init__(
3535
entry_point: Optional[str] = None,
3636
extend_pythonpath: bool = False,
3737
prepend_pythonpath: Optional[str] = None,
38-
hashes: Optional[dict[str, Any]] = None,
38+
hashes: Optional[Dict[str, Any]] = None,
3939
no_modify: bool = False,
4040
reproducible: bool = False,
4141
script: Optional[str] = None,
@@ -46,7 +46,7 @@ def __init__(
4646
self.always_write_cache: bool = always_write_cache
4747
self.build_id: Optional[str] = build_id
4848
self.built_at: str = built_at
49-
self.hashes: Optional[dict[str, Any]] = hashes or {}
49+
self.hashes: Optional[Dict[str, Any]] = hashes or {}
5050
self.no_modify: bool = no_modify
5151
self.reproducible: bool = reproducible
5252
self.preamble: Optional[str] = preamble

0 commit comments

Comments
 (0)