misc [tests]: Fix and update test data

(cherry picked from commit 6e762349fa759960d620d720b64c1daadd03ecde)

GitOrigin-RevId: f32f34da2124b388f31f01a21cfcc52b90c1c1b9
This commit is contained in:
Daniil Kalinin
2026-07-21 14:09:17 +00:00
committed by intellij-monorepo-bot
parent 9608862098
commit eece409730
2 changed files with 3 additions and 8 deletions
@@ -817,12 +817,9 @@ class PyCallableTypeTest : PyCodeInsightTestCase() {
@Test
@TestFor(issues = ["PY-90348"])
fun `Concatenate-typed decorator keeps the receiver type`() = test("""
from typing import Any, Callable, Concatenate, ParamSpec, TypeVar
from typing import Any, Callable, Concatenate
P = ParamSpec("P")
R = TypeVar("R")
def deco(fn: Callable[Concatenate[Any, P], R]) -> Callable[P, R]: ...
def deco[**P, R](fn: Callable[Concatenate[Any, P], R]) -> Callable[P, R]: ...
class C:
@deco
@@ -785,9 +785,7 @@ class PyGenericTypeTest : PyCodeInsightTestCase() {
@Test
@TestFor(issues = ["PY-90345"])
fun `parameterized union TypeAlias with class-object arm PEP695`() = test("""
from typing import Generic, TypeVar
T = TypeVar('T')
class Role(Generic[T]): ...
class Role[T]: ...
type Alias[T] = Role[T] | type[T]
expr: Alias[int]
#└ TYPE Role[int] | type[int]