-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make PostHog compatibile with Python 3.9 #1987
Conversation
@@ -318,7 +318,7 @@ def test_breakdown_filtering(self): | |||
|
|||
self.assertEqual(sum(response[0]["data"]), 2) | |||
self.assertEqual(response[0]["data"][4 + 7], 2) | |||
self.assertEqual(response[0]["breakdown_value"], "None") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will possibly mess stuff up in the frontend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found any comparison to 'None'
in the frontend code base, so think this shouldn't affect it (unless I'm missing some value handling somewhere).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appUrlsLogic.js:45 relies on it being true/false (rather than 'nan'), same for trendsLogic.js:100.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it was a truthy string anyway though, as in "None"
, not None
.
@timgl If we want to test multiple Python versions, could you un-require "Django tests" (without " – Py ...") so that this is mergeable? Unless we don't want that. |
Changes
Python 3.9.0 has been released and all of PostHog seems to be compatible with it – except for Pandas 1.0.3, which had installation issues on the updated CPython. This fixes that by updating Pandas to 1.1.3.