Skip to content

Commit

Permalink
Silence linter warning.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570639358
  • Loading branch information
shaobohou authored and TF2JAXDev committed Oct 4, 2023
1 parent 6610cb0 commit 3927705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2jax/_src/numpy_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
# https://github.com/google/jax/blob/main/jax/experimental/jax2tf/shape_poly.py#L676
def is_poly_dim(x) -> bool:
# Array types.
if isinstance(x, (np.ndarray, jax.core.Tracer, xc.ArrayImpl)):
if isinstance(x, (np.ndarray, jax.core.Tracer, xc.ArrayImpl)): # pylint: disable=isinstance-second-argument-not-valid-type
return False

try:
Expand Down

0 comments on commit 3927705

Please sign in to comment.