Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Sep 14, 2024
1 parent e73c9aa commit 4fdbfda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hydra_zen/structured_configs/_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def _is_ufunc(value: Any) -> bool:
return isinstance(value, numpy.ufunc)


def _is_jax_ufunc(value: Any) -> bool:
def _is_jax_ufunc(value: Any) -> bool: # pragma: no cover
# checks without importing numpy
if (jnp := sys.modules.get("jax.numpy")) is None: # pragma: no cover
return False
Expand Down
4 changes: 2 additions & 2 deletions tests/test_docs_typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
pyright_analyze(
*FUNCS_TO_SCAN,
scan_docstring=True,
report_unnecessary_type_ignore_comment=False,
report_unnecessary_type_ignore_comment=True,
preamble=preamble,
),
):
Expand Down Expand Up @@ -130,7 +130,7 @@ def test_docstrings_scan_clean_via_pyright(func):
raw_files,
pyright_analyze(
*raw_files,
report_unnecessary_type_ignore_comment=True,
report_unnecessary_type_ignore_comment=False,
preamble=preamble,
pyright_config=pyright_config,
),
Expand Down

0 comments on commit 4fdbfda

Please sign in to comment.