hypothesis-geojson icon indicating copy to clipboard operation
hypothesis-geojson copied to clipboard

Fix incorrect import of assume

Open kochb opened this issue 4 years ago • 0 comments

The assume function is incorrectly being imported from hypothesis.strategies instead of hypothesis.

This worked by coincidence in the version of hypothesis available when hypothesis-geojson was released. In modern releases of hypothesis, assume is no longer imported into strategies, causing an ImportError which prevents usage of this library. Since assume was not listed as a member of __all__, the import was inappropriate at the time of release anyway.

Correcting the import to the documented location fixes the ImportError.

kochb avatar Jun 11 '20 15:06 kochb