mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
PY-83700 Support implicit type aliases at class level
GitOrigin-RevId: efaf7fb9ae413370f18429859c05f114e6cf4677
This commit is contained in:
committed by
intellij-monorepo-bot
parent
39a5fc5668
commit
60cafd2f61
+4
@@ -0,0 +1,4 @@
|
||||
from lib import Baz
|
||||
|
||||
|
||||
def bar(baz: Baz.SOME_TYPE) -> None: ...
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
T1 = TypeVar("T1")
|
||||
|
||||
|
||||
class Foo(Generic[T1]): ...
|
||||
|
||||
|
||||
class Baz:
|
||||
SOME_TYPE = Foo[int]
|
||||
Reference in New Issue
Block a user