void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" class B: def __call__(self, *args, **kwargs): pass def some_fn(arg: B): pass some_fn(<warning descr="Expected type 'B', got 'Type[B]' instead">B</warning>)""") ); }