mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
misc [tests]: Fix and update test data
(cherry picked from commit 6e762349fa759960d620d720b64c1daadd03ecde) GitOrigin-RevId: f32f34da2124b388f31f01a21cfcc52b90c1c1b9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9608862098
commit
eece409730
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user