Skip to content
Merged
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
6 changes: 3 additions & 3 deletions returns/contrib/hypothesis/laws.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ def factory(thing) -> st.SearchStrategy:

def _get_callable_type() -> Any:
# Helper to accommodate changes in `[email protected]`
if Callable in types._global_type_lookup: # type: ignore
return Callable
elif Callable.__origin__ in types._global_type_lookup: # type: ignore
if Callable.__origin__ in types._global_type_lookup: # type: ignore
return Callable.__origin__ # type: ignore
elif Callable in types._global_type_lookup: # type: ignore
return Callable
raise RuntimeError('Failed to find Callable type strategy')


Expand Down
Loading