From e160324ba77090e2ad1ee3cb307785c8746b442a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 23 Aug 2022 19:26:10 +0100 Subject: [PATCH] `six`: Fix incorrect `type[type[Any]]` annotation (#8599) Mypy will (correctly, I think) start flagging `type[type[Any]]` as an illegal annotation when mypy 0.980 comes out. Let's fix it now, before it comes out. --- stubs/six/six/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/six/six/__init__.pyi b/stubs/six/six/__init__.pyi index 7a084b3cc..0a84d0da0 100644 --- a/stubs/six/six/__init__.pyi +++ b/stubs/six/six/__init__.pyi @@ -28,7 +28,7 @@ PY34: Literal[True] string_types: tuple[type[str]] integer_types: tuple[type[int]] -class_types: tuple[type[type[Any]]] +class_types: tuple[type[type]] text_type = str binary_type = bytes