Skip to content

Commit 21e3805

Browse files
committed
Cast is unnecessary, apparently
1 parent cddc53b commit 21e3805

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setuptools/command/editable_wheel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
from .install import install as install_cls
4141
from .install_scripts import install_scripts as install_scripts_cls
4242

43-
from distutils.command.build_scripts import build_scripts as build_scripts_cls
44-
4543
if TYPE_CHECKING:
4644
from typing_extensions import Self
4745

@@ -215,7 +213,7 @@ def _configure_build(
215213

216214
# For portability, ensure scripts are built with #!python shebang
217215
# pypa/setuptools#4863
218-
build_scripts = cast(build_scripts_cls, dist.get_command_obj("build_scripts"))
216+
build_scripts = dist.get_command_obj("build_scripts")
219217
build_scripts.executable = 'python'
220218

221219
install_scripts = cast(

0 commit comments

Comments
 (0)