File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ termcolor>=2
16
16
tomli==2.0.1
17
17
tomlkit==0.11.6
18
18
types-pyyaml>=6.0.12.7
19
- types-setuptools
19
+ types-setuptools>=67.5.0.0
20
20
typing-extensions
Original file line number Diff line number Diff line change @@ -159,12 +159,10 @@ def get_missing_modules(files_to_test: Sequence[str]) -> Iterable[str]:
159
159
missing_modules = set ()
160
160
for distribution in stub_distributions :
161
161
for pkg in read_dependencies (distribution ).external_pkgs :
162
+ egg_info = pkg_resources .get_distribution (pkg ).egg_info
163
+ assert isinstance (egg_info , str )
162
164
# See https://stackoverflow.com/a/54853084
163
- top_level_file = os .path .join (
164
- # Fixed in #9747
165
- pkg_resources .get_distribution (pkg ).egg_info , # type: ignore[attr-defined] # pyright: ignore[reportGeneralTypeIssues]
166
- "top_level.txt" ,
167
- )
165
+ top_level_file = os .path .join (egg_info , "top_level.txt" )
168
166
with open (top_level_file ) as f :
169
167
missing_modules .update (f .read ().splitlines ())
170
168
return missing_modules
You can’t perform that action at this time.
0 commit comments