Skip to content
Draft
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 hamilton/htypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def custom_subclass_check(requested_type: Type, param_type: Type):
param_type, _ = get_type_information(param_type)
param_origin_type = param_type
has_generic = False
if param_type == Any:
if param_type == Any or requested_type == Any:
# any type is a valid subclass of Any.
return True
if _safe_subclass(requested_type, param_type):
Expand Down