wookayin / expt

Experiment. Plot. Tabulate.
MIT License
68 stars 6 forks source link

expt 0.4.1 breaks in python 3.10 #24

Closed vwxyzjn closed 1 year ago

vwxyzjn commented 1 year ago
import expt
expt.Experiment("Comparison")

seems to break in python 3.10.

image
wookayin commented 1 year ago

Thanks for the report. Yes, indeed the line

      hypotheses: Iterable[Hypothesis] = None,

is a not typing.

This is no longer a problem in the master branch as have been fixed since 1166a49f8c18fd7a56cab25f76ead00b3d39b10f, but I will backport the fix because people would want a stable version that works.

A workaround would be specifying the argument explicitly: Experiment(name, hypotheses=())

wookayin commented 1 year ago

This is actually a typeguard issue rather than python 3.10. I've released v0.4.2 which contains a backport patch.