Skip to content
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

ref: default result_type= to "numeric" #84268

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

asottile-sentry
Copy link
Member

the nullability makes the type system rather angry with this class

@asottile-sentry asottile-sentry requested review from a team January 29, 2025 21:28
@asottile-sentry asottile-sentry requested a review from a team as a code owner January 29, 2025 21:28
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 29, 2025
@@ -950,7 +950,6 @@ class SingularEntityDerivedMetric(DerivedMetricExpression):

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're getting rid of the init override, the entire if not TYPE_CHECKING conditional here along with the comment could be eliminated as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's other behaviour in the __init__ though

@asottile-sentry asottile-sentry merged commit ff765ab into master Jan 30, 2025
50 checks passed
@asottile-sentry asottile-sentry deleted the asottile-default-result-type-to-numeric branch January 30, 2025 16:28
snigdhas pushed a commit that referenced this pull request Jan 30, 2025
the nullability makes the type system rather angry with this class

<!-- Describe your PR here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants