Fix numpy constant

This commit is contained in:
Matthew Honnibal 2024-09-14 13:13:05 +02:00
parent de4f19f3a3
commit 5010fcbd3a
1 changed files with 1 additions and 1 deletions

View File

@ -2309,7 +2309,7 @@ class Language:
def _replace_numpy_floats(meta_dict: dict) -> dict:
return convert_recursive(lambda v: isinstance(v, numpy.floaty), lambda v: float(v), dict(meta_dict))
return convert_recursive(lambda v: isinstance(v, numpy.floating), lambda v: float(v), dict(meta_dict))
@dataclass