Skip to content

Commit 7f48f4d

Browse files
committed
fix fixture
1 parent 37d2ee4 commit 7f48f4d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test-data/unit/fixtures/dict-full.pyi

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ from typing import (
88
)
99

1010
T = TypeVar('T')
11+
T1 = TypeVar('T1')
1112
T2 = TypeVar('T2')
1213
KT = TypeVar('KT')
1314
VT = TypeVar('VT')
@@ -39,15 +40,8 @@ class dict(Mapping[KT, VT]):
3940
def get(self, key: KT, default: T, /) -> Union[VT, T]: pass
4041
def __len__(self) -> int: ...
4142

42-
# This was actually added in 3.9:
43-
@overload
44-
def __or__(self, __value: dict[KT, VT]) -> dict[KT, VT]: ...
45-
@overload
46-
def __or__(self, __value: dict[T, T2]) -> dict[Union[KT, T], Union[VT, T2]]: ...
47-
@overload
48-
def __ror__(self, __value: dict[KT, VT]) -> dict[KT, VT]: ...
49-
@overload
50-
def __ror__(self, __value: dict[T, T2]) -> dict[Union[KT, T], Union[VT, T2]]: ...
43+
def __or__(self, value: dict[T1, T2], /) -> dict[KT | T1, VT | T2]: ...
44+
def __ror__(self, value: dict[T1, T2], /) -> dict[KT | T1, VT | T2]: ...
5145
# dict.__ior__ should be kept roughly in line with MutableMapping.update()
5246
@overload # type: ignore[misc]
5347
def __ior__(self, __value: _typeshed.SupportsKeysAndGetItem[KT, VT]) -> Self: ...

0 commit comments

Comments
 (0)