Skip to content

Commit

Permalink
fix for API breakage in numpydoc_decorator (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimanfoo authored May 26, 2023
1 parent 962b54b commit 85aa30a
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 153 deletions.
6 changes: 3 additions & 3 deletions malariagen_data/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import zarr
from fsspec.core import url_to_fs
from fsspec.mapping import FSMap
from numpydoc_decorator.impl import format_type
from numpydoc_decorator.impl import humanize_type
from typing_extensions import TypeAlias, get_type_hints

DIM_VARIANT = "variants"
Expand Down Expand Up @@ -915,8 +915,8 @@ def wrapper(*args, **kwargs):
try:
typeguard.check_type(v, t)
except typeguard.TypeCheckError as e:
expected_type = format_type(t)
actual_type = format_type(type(v))
expected_type = humanize_type(t)
actual_type = humanize_type(type(v))
message = fill(
dedent(
f"""
Expand Down
Loading

0 comments on commit 85aa30a

Please sign in to comment.