summaryrefslogtreecommitdiff
path: root/tests/functional/t/typing_generic.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/t/typing_generic.py')
-rw-r--r--tests/functional/t/typing_generic.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/t/typing_generic.py b/tests/functional/t/typing_generic.py
new file mode 100644
index 000000000..0e121a1f6
--- /dev/null
+++ b/tests/functional/t/typing_generic.py
@@ -0,0 +1,14 @@
+# pylint: disable=missing-docstring,invalid-name,too-few-public-methods
+
+# https://github.com/PyCQA/pylint/issues/2822
+# Base should be subscriptable, even with ABCMeta as metaclass
+from abc import ABCMeta
+from typing import Generic, TypeVar
+
+T = TypeVar("T")
+
+class Base(Generic[T], metaclass=ABCMeta):
+ """Base"""
+
+class Impl(Base[str]):
+ """Impl"""