From 3a2ce92d329fa1090c977b5346e1c6bcc2bf3c82 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Fri, 11 Feb 2022 17:53:01 -0800 Subject: [PATCH] singledispatch: fix lint (#7178) Co-authored-by: hauntsaninja <> --- stubs/singledispatch/singledispatch.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/singledispatch/singledispatch.pyi b/stubs/singledispatch/singledispatch.pyi index 4a2af7296..28c735b8f 100644 --- a/stubs/singledispatch/singledispatch.pyi +++ b/stubs/singledispatch/singledispatch.pyi @@ -1,4 +1,4 @@ -from typing import Any, Callable, Generic, Mapping, Type, TypeVar, overload +from typing import Any, Callable, Generic, Mapping, TypeVar, overload _T = TypeVar("_T") @@ -19,9 +19,9 @@ class singledispatchmethod(Generic[_T]): func: Callable[..., _T] def __init__(self, func: Callable[..., _T]) -> None: ... @overload - def register(self, cls: Type[Any], method: None = ...) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ... + def register(self, cls: type[Any], method: None = ...) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ... @overload def register(self, cls: Callable[..., _T], method: None = ...) -> Callable[..., _T]: ... @overload - def register(self, cls: Type[Any], method: Callable[..., _T]) -> Callable[..., _T]: ... + def register(self, cls: type[Any], method: Callable[..., _T]) -> Callable[..., _T]: ... def __call__(self, *args: Any, **kwargs: Any) -> _T: ...