Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions stdlib/@tests/test_cases/itertools/check_itertools_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,9 @@
import math
import operator
import sys
from collections.abc import Callable, Collection, Hashable, Iterable, Iterator, Sequence
from itertools import chain, combinations, count, cycle, filterfalse, groupby, islice, product, repeat, starmap, tee, zip_longest
from typing import (
Any,
Callable,
Collection,
Hashable,
Iterable,
Iterator,
Literal,
Sequence,
Tuple,
Type,
TypeAlias,
TypeVar,
Union,
overload,
)
from typing import Any, Literal, TypeAlias, TypeVar, overload
from typing_extensions import TypeVarTuple, Unpack

_T = TypeVar("_T")
Expand Down Expand Up @@ -141,7 +127,7 @@ def first_true(iterable: Iterable[object], default: object = False, pred: Callab
return next(filter(pred, iterable), default)


_ExceptionOrExceptionTuple: TypeAlias = Union[Type[BaseException], Tuple[Type[BaseException], ...]]
_ExceptionOrExceptionTuple: TypeAlias = type[BaseException] | tuple[type[BaseException], ...]


@overload
Expand Down
4 changes: 2 additions & 2 deletions stubs/grpcio/@tests/test_cases/check_server_interceptor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from collections.abc import Callable
from collections.abc import Awaitable, Callable
from concurrent.futures.thread import ThreadPoolExecutor
from typing import Awaitable, TypeVar
from typing import TypeVar

import grpc
import grpc.aio
Expand Down
3 changes: 1 addition & 2 deletions stubs/python-dateutil/@tests/test_cases/check_rrule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import Union
from typing_extensions import assert_type

from dateutil.rrule import rrule, rruleset, rrulestr
Expand All @@ -10,4 +9,4 @@
assert_type(rs2, rruleset)

rs3 = rrulestr("")
assert_type(rs3, Union[rrule, rruleset])
assert_type(rs3, rrule | rruleset)
Loading