PY-73246 Don't insert square brackets after classes not having free type parameters

Even if they transitively extend typing.Generic, such as the builtin str.

GitOrigin-RevId: 9389ef5846e21ba5e0fed8b835beb2d458e42f13
This commit is contained in:
Mikhail Golubev
2024-07-02 14:08:48 +00:00
committed by intellij-monorepo-bot
parent ebba681c85
commit eb63148798
4 changed files with 24 additions and 3 deletions
@@ -0,0 +1,8 @@
from typing import Iterable
class StrIterable(Iterable[str]):
pass
x: StrIterable
@@ -0,0 +1,8 @@
from typing import Iterable
class StrIterable(Iterable[str]):
pass
x: StrIter<caret>