Skip to content

Fix deprecated typing aliases to use collections.abc#418

Open
Sikandar1310291 wants to merge 1 commit intogoogle-deepmind:mainfrom
Sikandar1310291:fix-type-hints-361
Open

Fix deprecated typing aliases to use collections.abc#418
Sikandar1310291 wants to merge 1 commit intogoogle-deepmind:mainfrom
Sikandar1310291:fix-type-hints-361

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