File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change
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
+
1
7
import sys
2
8
3
9
from distutils .command .bdist import bdist
7
13
# format_commands is a dict in vendored distutils
8
14
# It used to be a list in older (stdlib) distutils
9
15
# 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" )
11
17
except TypeError :
12
18
bdist .format_command ['egg' ] = ('bdist_egg' , "Python .egg file" )
13
19
bdist .format_commands .append ('egg' )
You can’t perform that action at this time.
0 commit comments