Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def readme():
install_requires=[
"click>=7.0",
"tensorflow-datasets>=1.3.0,<v4.9.0",
"typeguard>=2.5.1,<3.0.0",
"typeguard>=3.0",
"protobuf<3.21", # for tensorflow-datasets
],
extras_require={
Expand Down
7 changes: 2 additions & 5 deletions zookeeper/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,8 @@ def type_check(value, expected_type) -> bool:
)
return True
try:
# typeguard.check_type requires a name as the first argument for their
# error message, but we want to catch their error so we can pass an
# empty string.
typeguard.check_type("", value, expected_type)
except TypeError:
typeguard.check_type(value, expected_type)
except typeguard.TypeCheckError:
return False
return True

Expand Down