-
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
chore: Upgrade pydantic, mypy, and others #19660
Conversation
Size Change: -2.65 kB (0%) Total Size: 2 MB
|
@pauldambra I saw that you tried to update mypy before. I need to update it here, because updating pydantic and others breaks it (as noted above). I found mypy-baseline as a tool to work around the issue that the update causes 1229 problems 😅 |
@webjunkie nice! That seems like a good trade-off... we're effectively ignoring those errors by not upgrading mypy... I like that the tool prompts you on progress too so it's that little bit harder to forget 😊 |
@@ -157,141 +158,5 @@ | |||
prop | |||
HAVING steps = max_steps) | |||
GROUP BY prop | |||
' | |||
--- | |||
# name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.5 |
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 think this is normally snapshots that no longer exist...
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.
scanned 59 of 97 files
some changes to the snapshots (although nothing automatically worrying)
looking at the changelog for syrupy there's
- numerically sort snapshots if possible
which might explain the changes
@@ -286,124 +173,10 @@ | |||
prop | |||
HAVING steps = max_steps) | |||
GROUP BY prop | |||
' | |||
--- | |||
# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.2 |
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.
same
@@ -279,88 +280,10 @@ | |||
AND NOT "posthog_annotation"."deleted") | |||
ORDER BY "posthog_annotation"."date_marker" DESC | |||
LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ | |||
' | |||
--- | |||
# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 |
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.
same
@@ -1538,28 +1539,10 @@ | |||
WHERE (NOT ("posthog_dashboard"."deleted") | |||
AND "posthog_dashboard"."id" = 2) | |||
LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ | |||
' | |||
--- | |||
# name: TestInsight.test_listing_insights_does_not_nplus1.30 |
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.
and again
SELECT "posthog_instancesetting"."id", | ||
"posthog_instancesetting"."key", | ||
"posthog_instancesetting"."raw_value" | ||
FROM "posthog_instancesetting" | ||
WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' | ||
ORDER BY "posthog_instancesetting"."id" ASC | ||
LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ | ||
' | ||
--- | ||
# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.315 |
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.
same
@@ -364,66 +357,21 @@ | |||
FROM "posthog_organizationmembership" | |||
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") | |||
WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ | |||
' | |||
--- | |||
# name: TestNotebooks.test_updates_notebook.20 |
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.
same 🫠
* Upgrade pydantic and all related * Upgrade mypy * Add mypy-baseline To update baseline when you fix something (only then!) use: [mypy cmd] | mypy-baseline sync
Problem
Upgrading pydantic and drf-spectacular so they work together.
Preparing for other PRs, i.e. #19408
Changes
see https://github.com/tfranzel/drf-spectacular/releases/tag/0.27.0
AssertionError: Internal error: too many class plugin hook passes python/mypy#15004
How did you test this code?