Skip to content

Commit f0fce92

Browse files
committed
Remove unneeded CaseInsensitiveDict in wheel.py
1 parent 914ccdb commit f0fce92

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

tests/lib/wheel.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
AnyStr,
2020
TypeVar,
2121
Union,
22+
cast,
2223
)
2324
from zipfile import ZipFile
2425

@@ -91,13 +92,11 @@ def make_metadata_file(
9192
if value is not _default:
9293
return File(path, ensure_binary(value))
9394

94-
metadata = CaseInsensitiveDict(
95-
{
96-
"Metadata-Version": "2.1",
97-
"Name": name,
98-
"Version": version,
99-
}
100-
)
95+
metadata: dict[str, HeaderValue] = {
96+
"Metadata-Version": "2.1",
97+
"Name": name,
98+
"Version": version,
99+
}
101100
if updates is not _default:
102101
metadata.update(updates)
103102

@@ -123,14 +122,12 @@ def make_wheel_metadata_file(
123122
if value is not _default:
124123
return File(path, ensure_binary(value))
125124

126-
metadata = CaseInsensitiveDict(
127-
{
128-
"Wheel-Version": "1.0",
129-
"Generator": "pip-test-suite",
130-
"Root-Is-Purelib": "true",
131-
"Tag": ["-".join(parts) for parts in tags],
132-
}
133-
)
125+
metadata: dict[str, HeaderValue] = {
126+
"Wheel-Version": "1.0",
127+
"Generator": "pip-test-suite",
128+
"Root-Is-Purelib": "true",
129+
"Tag": ["-".join(parts) for parts in tags],
130+
}
134131

135132
if updates is not _default:
136133
metadata.update(updates)

0 commit comments

Comments
 (0)