Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: test Python 3.12 #377

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest]
jax-version: ["newest"]
include:
- python-version: "3.9"
os: "ubuntu-latest"
jax-version: "0.4.27" # Keep this in sync with version in requirements.txt
- python-version: "3.11"
- python-version: "3.12"
os: "ubuntu-latest"
jax-version: "nightly"

Expand Down
5 changes: 3 additions & 2 deletions chex/_src/asserts_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@

import collections
import collections.abc
from collections.abc import Hashable
import functools
import re
import threading
import traceback
from typing import Any, Sequence, Union, Callable, Hashable, List, Optional, Set, Tuple, Type
from typing import Any, Sequence, Union, Callable, List, Optional, Set, Tuple, Type

from absl import logging
from chex._src import pytypes
Expand Down Expand Up @@ -299,7 +300,7 @@ def format_tree_path(path: Sequence[Any]) -> str:


def format_shape_matcher(shape: TShapeMatcher) -> str:
return f"({', '.join('...' if d is Ellipsis else str(d) for d in shape)})"
return f"({', '.join('...' if d is Ellipsis else str(d) for d in shape)})" # pylint: disable=inconsistent-quotes


def num_devices_available(devtype: str, backend: Optional[str] = None) -> int:
Expand Down
3 changes: 2 additions & 1 deletion chex/_src/dimensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
# ==============================================================================
"""Utilities to hold expected dimension sizes."""

from collections.abc import Sized
import math
import re
from typing import Any, Collection, Dict, Optional, Sized, Tuple
from typing import Any, Collection, Dict, Optional, Tuple


Shape = Tuple[Optional[int], ...]
Expand Down
Loading