Skip to content

Commit

Permalink
Suppress mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Nov 6, 2024
1 parent 4feba96 commit 931f212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def _trace_arg_repr(val: Any) -> str:
shard_str = f"{clr_devc}{{shard={val.sharding.shape}}}{clr_args}"
return f"Array{val.shape}{dev_str}{shard_str}"
else:
if _get_hash(val) in call_trace.instance_hash:
return f"{clr_rvar}{call_trace.instance_hash[val.__hash__()]}{clr_args}"
if _get_hash(val) in call_trace.instance_hash: # type: ignore
return f"{clr_rvar}{call_trace.instance_hash[val.__hash__()]}{clr_args}" # type: ignore
else:
return f"[{type(val).__name__}]"

Expand Down

0 comments on commit 931f212

Please sign in to comment.