Skip to content

Commit ffe733d

Browse files
committed
ci: unpin mypy from lint job
1 parent c8e5a25 commit ffe733d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
- uses: actions/setup-python@v5
5353
with:
5454
python-version: '3.x'
55-
# Pin mypy to version 1.8, so we retain the ability to lint for Python 3.7
56-
- run: python -m pip install "mypy==1.8" strictyaml truststore types-PyYAML types-tqdm types-chevron
55+
- run: python -m pip install strictyaml truststore types-PyYAML types-tqdm types-chevron
5756
- run: python run_mypy.py --allver
5857
env:
5958
PYTHONUNBUFFERED: 1

mesonbuild/minstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def set_chown(path: str, user: T.Union[str, int, None] = None,
165165
if sys.version_info >= (3, 13):
166166
# pylint: disable=unexpected-keyword-arg
167167
# cannot handle sys.version_info, https://github.com/pylint-dev/pylint/issues/9622
168-
shutil.chown(path, user, group, dir_fd=dir_fd, follow_symlinks=follow_symlinks) # type: ignore[call-overload]
168+
shutil.chown(path, user, group, dir_fd=dir_fd, follow_symlinks=follow_symlinks)
169169
else:
170170
real_os_chown = os.chown
171171

mesonbuild/modules/pkgconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def _add_exclude(x: T.Union[str, build.CustomTarget, build.CustomTargetIndex, bu
367367
# pylance/pyright gets this right, but for mypy we have to ignore the
368368
# error
369369
@T.overload
370-
def _fn(xs: T.List[str], libs: bool = False) -> T.List[str]: ... # type: ignore
370+
def _fn(xs: T.List[str], libs: bool = False) -> T.List[str]: ...
371371

372372
@T.overload
373373
def _fn(xs: T.List[LIBS], libs: bool = False) -> T.List[LIBS]: ...

0 commit comments

Comments
 (0)