Skip to content

Commit 030cc6c

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Pin (and fix?) mypy (#8755)
Reviewed By: vmoens Differential Revision: D68021963 fbshipit-source-id: eec635d1faeae5cd2987c97b124b8e90eaf3b11b
1 parent be227c6 commit 030cc6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
script: |
7373
set -euo pipefail
7474
75-
export PYTHON_VERSION=3.9
75+
export PYTHON_VERSION=3.11
7676
export GPU_ARCH_TYPE=cpu
7777
export GPU_ARCH_VERSION=''
7878
@@ -83,7 +83,7 @@ jobs:
8383
conda activate ci
8484
8585
echo '::group::Install lint tools'
86-
pip install --progress-bar=off mypy
86+
pip install --progress-bar=off "mypy==1.13.0"
8787
echo '::endgroup::'
8888
8989
echo '::group::Lint Python types'

torchvision/models/maxvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def __init__(
688688
p_stochastic=p_stochastic[p_idx : p_idx + num_layers],
689689
),
690690
)
691-
input_size = self.blocks[-1].grid_size
691+
input_size = self.blocks[-1].grid_size # type: ignore[assignment]
692692
p_idx += num_layers
693693

694694
# see https://github.com/google-research/maxvit/blob/da76cf0d8a6ec668cc31b399c4126186da7da944/maxvit/models/maxvit.py#L1137-L1158

0 commit comments

Comments
 (0)