Skip to content

Commit 62b63c4

Browse files
committed
Fix cross-python version issue
1 parent 0efd757 commit 62b63c4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setuptools/command/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# mypy: disable_error_code=call-overload
2+
# pyright: reportCallIssue=false, reportArgumentType=false
3+
# Can't disable on the exact line because distutils doesn't exists on Python 3.12
4+
# and type-checkers aren't aware of distutils_hack,
5+
# causing distutils.command.bdist.bdist.format_commands to be Any.
6+
17
import sys
28

39
from distutils.command.bdist import bdist
@@ -7,7 +13,7 @@
713
# format_commands is a dict in vendored distutils
814
# It used to be a list in older (stdlib) distutils
915
# We support both for backwards compatibility
10-
bdist.format_commands['egg'] = ('bdist_egg', "Python .egg file") # type: ignore[call-overload]
16+
bdist.format_commands['egg'] = ('bdist_egg', "Python .egg file")
1117
except TypeError:
1218
bdist.format_command['egg'] = ('bdist_egg', "Python .egg file")
1319
bdist.format_commands.append('egg')

0 commit comments

Comments
 (0)