Skip to content

Commit 0f6f874

Browse files
committed
Integrate pyright in tox
1 parent e418485 commit 0f6f874

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,6 @@ env:
3434
3535
3636
jobs:
37-
pyright:
38-
strategy:
39-
matrix:
40-
python:
41-
- "3.8"
42-
- "3.11"
43-
- "3.12"
44-
platform:
45-
- ubuntu-latest
46-
- macos-latest
47-
- windows-latest
48-
runs-on: ${{ matrix.platform }}
49-
steps:
50-
- uses: actions/checkout@v4
51-
- uses: jakebailey/pyright-action@v2
52-
with:
53-
python-version: ${{ matrix.python }}
54-
5537
test:
5638
strategy:
5739
matrix:

setuptools/command/easy_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ def is_python_script(script_text, filename):
20112011

20122012

20132013
try:
2014-
from os import chmod as _chmod
2014+
from os import chmod as _chmod # pyright: ignore[reportAssignmentType] # Loosing type-safety w/ pyright, but that's ok
20152015
except ImportError:
20162016
# Jython compatibility
20172017
def _chmod(*args: object, **kwargs: object) -> None: # type: ignore[misc] # Mypy re-uses the imported definition anyway

0 commit comments

Comments
 (0)