Skip to content

Conversation

@Sikandar1310291
Copy link

This PR updates deprecated typing aliases to their modern collections.abc counterparts to follow PEP 585 and avoid future Python 3.14+ issues and beartype warnings.

Changes:

  • Replace imports like from typing import Iterator, Sequence, Mapping, Iterable with from collections.abc import Iterator, Sequence, Mapping, Iterable in chex/_src modules.

Testing:

  • Installed in editable mode with python -m pip install -e ".[dev]".
  • Ran python -m pytest on Windows / Python 3.14.2. One async checkify test aborted with a JAX runtime error that appears environment-specific; no failures observed that seem related to these type-hint edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants