From fe361df62b101a27fd2ea203fb0b79b6a5f61401 Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Tue, 21 Dec 2021 23:41:09 +0100 Subject: =?UTF-8?q?STY:=20Use=20subscriptable=20`collections.abc`=20types?= =?UTF-8?q?=20over=20the=20generic=20aliases=20in=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- numpy/testing/_private/utils.pyi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'numpy/testing') diff --git a/numpy/testing/_private/utils.pyi b/numpy/testing/_private/utils.pyi index ab3e6f805..8117f18ae 100644 --- a/numpy/testing/_private/utils.pyi +++ b/numpy/testing/_private/utils.pyi @@ -5,17 +5,15 @@ import types import warnings import unittest import contextlib +from re import Pattern +from collections.abc import Callable, Iterable, Sequence from typing import ( Literal as L, Any, AnyStr, - Callable, ClassVar, - Iterable, NoReturn, overload, - Pattern, - Sequence, type_check_only, TypeVar, Union, -- cgit v1.2.1