Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deprecated --force-uppercase-builtins flag#19176

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Always return true for use_lowercase_names
  • Loading branch information
@cdce8p
cdce8p committedMay 30, 2025
commitc6a1d2cf7a2afb1ca559d71652c38f9c48c02289
6 changes: 2 additions & 4 deletionsmypy/options.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -416,13 +416,11 @@ def __init__(self) -> None:

def use_lowercase_names(self) -> bool:
warnings.warn(
"options.use_lowercase_names is deprecated and will be removed in a future version",
"options.use_lowercase_names() is deprecated and will be removed in a future version",
DeprecationWarning,
stacklevel=2,
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm we don't use thewarnings module much since mypy is usually used on the command line. This seems a bit inconsistent with existing behavior, so maybe this should reverted. What do you think?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Not sure about it. I've removed all calls to this method from the mypy codebase itself. So we could even think about just removing it completely. My intention with the DeprecationWarning was to help plugin developers which might be using it. Then again, I don't know if any plugins actually use it.

if self.python_version >= (3, 9):
return not self.force_uppercase_builtins
return False
return True

def use_or_syntax(self) -> bool:
if self.python_version >= (3, 10):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp