Skip to content

Commit 939553d

Browse files
committed
try to get mypy colored errors
1 parent 0f6f874 commit 939553d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setuptools/command/easy_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ def _wrap_lines(cls, lines):
17641764

17651765

17661766
if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'raw') == 'rewrite':
1767-
PthDistributions = RewritePthDistributions # type: ignore[misc] # Overwriting type
1767+
PthDistributions = RewritePthDistributions
17681768

17691769

17701770
def _first_line_re():

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ setenv =
66
PYTHONWARNDEFAULTENCODING = 1
77
SETUPTOOLS_ENFORCE_DEPRECATION = {env:SETUPTOOLS_ENFORCE_DEPRECATION:0}
88
# ^-- Temporarily disable enforcement so CI don't fail on due dates
9+
MYPY_FORCE_COLOR = 1
910
commands =
1011
pyright .
1112
pytest --mypy {posargs}

0 commit comments

Comments
 (0)