Skip to content

Fix pytype and runtime errors in Optax causing GitHub CI failures.#1681

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921516936
Open

Fix pytype and runtime errors in Optax causing GitHub CI failures.#1681
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921516936

Conversation

@copybara-service
Copy link
Copy Markdown

Fix pytype and runtime errors in Optax causing GitHub CI failures.

  • Remove invalid pytype directive 'unreachable' in transform.py.
  • Safely access 'all' in coverage_check.py to avoid runtime AttributeError on modules lacking it (e.g., optax.contrib).
  • Disable 'final-error' in pytype for OptaxCoverageCheck class in coverage_check.py.

- Remove invalid pytype directive 'unreachable' in transform.py.
- Safely access '__all__' in coverage_check.py to avoid runtime AttributeError on modules lacking it (e.g., optax.contrib).
- Disable 'final-error' in pytype for OptaxCoverageCheck class in coverage_check.py.

PiperOrigin-RevId: 921516936
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.

1 participant