void () { doTestByText(""" from typing import Generic, TypeVar, TypeAlias T = TypeVar("T") class A(Generic[T]): def __init__(self, v): pass def a(b: <warning descr="Generics should be specified through square brackets">A(int)</warning>): pass def c(d): # type: (<warning descr="Generics should be specified through square brackets">A(int)</warning>) -> None pass def e(f: <warning descr="Generics should be specified through square brackets">A()</warning>): pass def g(h): # type: (<warning descr="Generics should be specified through square brackets">A()</warning>) -> None pass \s v1 = A(int) v2 = None # type: <warning descr="Generics should be specified through square brackets">A(int)</warning> U = A def i(j: <warning descr="Generics should be specified through square brackets">U(int)</warning>): pass \s v3 = None # type: <warning descr="Generics should be specified through square brackets">U(int)</warning> A1: TypeAlias = <warning descr="Generics should be specified through square brackets">A(int)</warning> A2: TypeAlias = '<warning descr="Generics should be specified through square brackets">A(int)</warning>' A3 = <warning descr="Generics should be specified through square brackets">A(int)</warning> # type: TypeAlias A4 = '<warning descr="Generics should be specified through square brackets">A(int)</warning>' # type: TypeAlias"""); }