You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
At multiple places in the code, a workaround is used to check typing of chex dataclasses. This involves doing a conditional import using if TYPE_CHECKING - we would like to avoid this if possible. It is related to this issue.
Describe the solution you'd like
We would a solution which avoids doing the conditional import.
Alternatives considered
Use a built-in dataclass instead of a chex dataclass. Example implementation where mypy doesn't complain:
Is your feature request related to a problem? Please describe
At multiple places in the code, a workaround is used to check typing of chex dataclasses. This involves doing a conditional import using
if TYPE_CHECKING
- we would like to avoid this if possible. It is related to this issue.Describe the solution you'd like
We would a solution which avoids doing the conditional import.
Alternatives considered
Use a built-in dataclass instead of a chex dataclass. Example implementation where mypy doesn't complain:
The text was updated successfully, but these errors were encountered: