Skip to content

Commit

Permalink
Merge pull request #657 from google-deepmind:pytype-3.11
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588066525
  • Loading branch information
OptaxDev committed Dec 5, 2023
2 parents 7ec3cb0 + e51e70e commit 587a256
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,8 @@ pip wheel --verbose --no-deps --no-clean dist/optax*.tar.gz
pip install optax*.whl

# Check types with pytype.
# Note: pytype does not support 3.11 as of 25.06.23
# See https://github.com/google/pytype/issues/1308
if [ `python -c 'import sys; print(sys.version_info.minor)'` -lt 11 ];
then
pip install pytype
pytype `find optax/_src/ examples -name '*.py' | xargs` -k -d import-error
fi;
pip install pytype
pytype `find optax/_src/ examples -name '*.py' | xargs` -k -d import-error

# Run tests using pytest.
# Change directory to avoid importing the package from repo root.
Expand Down

0 comments on commit 587a256

Please sign in to comment.