Skip to content

Commit c6a1d2c

Browse files
committed
Always return true for use_lowercase_names
1 parent f97c2d8 commit c6a1d2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mypy/options.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,11 @@ def __init__(self) -> None:
416416

417417
def use_lowercase_names(self) -> bool:
418418
warnings.warn(
419-
"options.use_lowercase_names is deprecated and will be removed in a future version",
419+
"options.use_lowercase_names() is deprecated and will be removed in a future version",
420420
DeprecationWarning,
421421
stacklevel=2,
422422
)
423-
if self.python_version >= (3, 9):
424-
return not self.force_uppercase_builtins
425-
return False
423+
return True
426424

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

0 commit comments

Comments
 (0)