Skip to content

Fix automatic int-casting code for Python 3.10 compatibility#2149

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
JamesWrigley:python3.10
Dec 11, 2021
Merged

Fix automatic int-casting code for Python 3.10 compatibility#2149
j9ac9k merged 1 commit intopyqtgraph:masterfrom
JamesWrigley:python3.10

Conversation

@JamesWrigley
Copy link
Copy Markdown
Contributor

Python 3.10 no longer allows automatically converting some floats to ints, see
the fourth point here:
https://docs.python.org/3/whatsnew/3.10.html#other-language-changes

(I see there's already been a bunch of other Python 3.10 fixes too)

Python 3.10 no longer allows automatically converting some floats to ints, see
the fourth point here:
https://docs.python.org/3/whatsnew/3.10.html#other-language-changes
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Dec 11, 2021

Hi @JamesWrigley

Thanks for the PR, reminded me that I need to add Python 3.10 to our CI!

Great call on casting to QPointF instead of just int() for the drawText method. This LGTM, merging!

@j9ac9k j9ac9k merged commit a5f48ec into pyqtgraph:master Dec 11, 2021
@JamesWrigley JamesWrigley deleted the python3.10 branch December 11, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants