Skip to content

Conversation

@intgr
Copy link
Contributor

@intgr intgr commented Jul 17, 2025

Mypy version was bumped in django-stubs:

The force_uppercase_builtins setting was deprecated in mypy 1.17. Caused test failures due to new logging.

https://mypy.readthedocs.io/en/stable/changelog.html#deprecated-flag-force-uppercase-builtins

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks! This proposal is optional. If it's hard to do, feel free to ignore.

# TODO: update our test error messages to match new mypy output
show_error_codes = false
force_uppercase_builtins = true
force_union_syntax = true
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
force_union_syntax = true

let's remove it as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, I was planning to do it in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mypy version was bumped in django-stubs:

* typeddjango/django-stubs#2744

The `force_uppercase_builtins` setting was deprecated in mypy 1.17. Caused test failures due to new logging.

https://mypy.readthedocs.io/en/stable/changelog.html#deprecated-flag-force-uppercase-builtins
@intgr intgr force-pushed the force_uppercase_builtins branch from c28d821 to 7fb06e8 Compare July 17, 2025 09:18
@intgr intgr merged commit d4742fa into typeddjango:master Jul 17, 2025
11 checks passed
@intgr intgr deleted the force_uppercase_builtins branch July 17, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants