Skip to content

Commit

Permalink
Pin (and fix?) mypy (#8755)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Nov 26, 2024
1 parent a77b37c commit b33aef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
script: |
set -euo pipefail
export PYTHON_VERSION=3.9
export PYTHON_VERSION=3.11
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
Expand All @@ -83,7 +83,7 @@ jobs:
conda activate ci
echo '::group::Install lint tools'
pip install --progress-bar=off mypy
pip install --progress-bar=off "mypy==1.13.0"
echo '::endgroup::'
echo '::group::Lint Python types'
Expand Down
2 changes: 1 addition & 1 deletion torchvision/models/maxvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def __init__(
p_stochastic=p_stochastic[p_idx : p_idx + num_layers],
),
)
input_size = self.blocks[-1].grid_size
input_size = self.blocks[-1].grid_size # type: ignore[assignment]
p_idx += num_layers

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

0 comments on commit b33aef4

Please sign in to comment.