Skip to content

Commit eb81747

Browse files
committed
Restore the egg-info-cls casting
1 parent bd615ee commit eb81747

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/command/bdist_wheel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
from .. import Command, __version__
2929
from ..warnings import SetuptoolsDeprecationWarning
30+
from .egg_info import egg_info as egg_info_cls
3031

3132
from distutils import log
3233

@@ -269,7 +270,7 @@ def finalize_options(self) -> None:
269270
self.bdist_dir = os.path.join(bdist_base, "wheel")
270271

271272
if self.dist_info_dir is None:
272-
egg_info = self.distribution.get_command_obj("egg_info")
273+
egg_info = cast(egg_info_cls, self.distribution.get_command_obj("egg_info"))
273274
egg_info.ensure_finalized() # needed for correct `wheel_dist_name`
274275

275276
self.data_dir = self.wheel_dist_name + ".data"

0 commit comments

Comments
 (0)