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

Commit9da85e6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, seehttps://pre-commit.ci
1 parentc1f3b1e commit9da85e6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎mypy/semanal.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,11 +3498,7 @@ def is_type_ref(self, rv: Expression, bare: bool = False) -> bool:
34983498
# should be evaluated as a variable assignment, not a type expression.
34993499
# This allows usage like `B = A` where `type A[T] = ...` without
35003500
# triggering "Missing type parameters" error.
3501-
if (
3502-
bare
3503-
andrv.node.python_3_12_type_alias
3504-
andrv.node.alias_tvars
3505-
):
3501+
ifbareandrv.node.python_3_12_type_aliasandrv.node.alias_tvars:
35063502
returnFalse
35073503
returnTrue
35083504

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp