Closed moi90 closed 1 month ago
Thank you, great catch. If that is the only python 3.9 compatibility issue, then I will use the Union
keyword instead of the pipe operator.
I don't know if this is the only issue... 3.9 will meet its end-of-life in October 2025. You have to decide if you want to support it for this last year. :) I saw that you previously replaced the Union
with the pipe operator in an earlier commit (and I agree that it looks much nicer).
I created a pull request to address this compatibility issue. (The piping operator seemed to be the only problem for 3.9. The Matplotlib version that is installed with older versions of Python lacks the matplotlib.typing
module, so 3.9 is the oldest working version.)
I dedicated a little bit of my time to this project, because I think it's awesome and was very helpful to me. :)
Sorry for the late reply -- I was in bed with bronchitis. I had a look at the PR; everything looks fine to me. So thank you very much for your time and your kind words! Stay awesome.
In _diagram_classes.py:155 you write type unions using the pipe operator. Union type expressions where only introduced in Python 3.10. However,
pyproject.toml
statesrequires-python = ">3.6"
.I think the
requires-python
field should be updated to reflect this.