Skip to content

Commit

Permalink
fix(pyright): Fix __name__ ref bug in `helper.validation.validate_n…
Browse files Browse the repository at this point in the history
…umpy_array_file`
  • Loading branch information
caniko authored and Can H. Tartanoglu committed Feb 24, 2024
1 parent 2f3e1dd commit 438b18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic_numpy/helper/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def validate_numpy_array_file(v: FilePath) -> npt.NDArray:
f"convert to single array NpzFiles.\n"
f"Path to multi array file: {result}\n"
f"Array keys: {', '.join(result.files)}\n"
f"Use pydantic_numpy.{MultiArrayNumpyFile.__class__.__name__} instead of a PathLike alone"
f"Use pydantic_numpy.{MultiArrayNumpyFile.__name__} instead of a PathLike alone"
)
raise PydanticNumpyMultiArrayNumpyFileOnFilePath(msg)
result = result[files[0]]
Expand Down

0 comments on commit 438b18c

Please sign in to comment.