Closed mgorny closed 1 year ago
Thank you. Rather than add some parsing library dependency or large regex, I think looking at the first two numbers will cover likely cases.
tuple(map(int, trio.__version__.split('.')[:2])) < (0, 22)
Yes, I think that should be good enough. Thanks!
the fix is published to pypi (v0.10.3)
Apparently it assumes that
trio.__version__
will always be X.Y.Z and doesn't support other valid PEP 440 versions, effectively causing it to fail when a development version of trio is used (but the same would also happen with release candidates, etc.).