Skip to content

Commit a2f6f97

Browse files
committed
Fix comments
1 parent a86a1ec commit a2f6f97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ts_utils/metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def read_metadata(distribution: str) -> StubMetadata:
241241
with metadata_path(distribution).open("rb") as f:
242242
# This cast is necessary for pyright to understand that the
243243
# variable is a dict with object values. Just using
244-
# `data: dict[str, object] = tomllib.load(f)` doesn't work because
244+
# `data: dict[str, object] = tomlkit.load(f)` doesn't work because
245245
# pyright still infers TOMLDocument which derives from
246246
# dict[Unknown, Unknown].
247247
data = cast(dict[str, object], tomlkit.load(f))
@@ -364,7 +364,7 @@ def update_metadata(distribution: str, **new_values: object) -> dict[str, object
364364
with path.open("rb") as f:
365365
# This cast is necessary for pyright to understand that the
366366
# variable is a dict with object values. Just using
367-
# `data: dict[str, object] = tomllib.load(f)` doesn't work because
367+
# `data: dict[str, object] = tomlkit.load(f)` doesn't work because
368368
# pyright still infers TOMLDocument which derives from
369369
# dict[Unknown, Unknown].
370370
data = cast(dict[str, object], tomlkit.load(f))

0 commit comments

Comments
 (0)