We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf2663 commit 134e587Copy full SHA for 134e587
setuptools/tests/test_wheel.py
@@ -160,8 +160,10 @@ def _check_wheel_install(
160
161
(dist,) = metadata.Distribution.discover(path=[egg_path])
162
163
- assert dist.metadata['Name'] == project_name
164
- assert dist.metadata['Version'] == version
+ # pyright is nitpicky; fine to assume dist.metadata.__getitem__ will fail or return None
+ # (https://github.com/pypa/setuptools/pull/5006#issuecomment-2894774288)
165
+ assert dist.metadata['Name'] == project_name # pyright: ignore # noqa: PGH003
166
+ assert dist.metadata['Version'] == version # pyright: ignore # noqa: PGH003
167
assert dist.read_text('requires.txt') == requires_txt
168
169
0 commit comments