st.from_type
doesn't work for type alias (typing.TypeAliasType
)
#4242
Labels
enhancement
it's not broken, but we want it to be better
Given a type alias (which is of type TypeAliasType) defined like:
I want to create a strategy and an example from that:
which results in an error
Accessing the underlying value through __value__ works as expected:
I am not familiar with the internals of
hypothesis
but sincePoint.__value__
works, I am inclined to thinkPoint
should also just work by handlingtyping.TypeAliasType
internally.python version:
Python 3.13.1 (main, Dec 3 2024, 17:59:52) [GCC 14.2.1 20241116] on linux
hypothesis version:
6.123.17
The text was updated successfully, but these errors were encountered: