summaryrefslogtreecommitdiff
path: root/tests/functional/u/unsubscriptable_object.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-12-02 21:58:26 +0100
committerGitHub <noreply@github.com>2021-12-02 21:58:26 +0100
commit35813de38ed58855f1b89fb492dc141d24bf2661 (patch)
treef443dc52015e71be29638eac3198de17674161e3 /tests/functional/u/unsubscriptable_object.py
parent8f12337deed0e532516307522041842227bd25a6 (diff)
downloadpylint-git-35813de38ed58855f1b89fb492dc141d24bf2661.tar.gz
Move various tests from ``TestTypeChecker`` to functional tests (#5455)
* Remove duplicate test already in 'not_context_manager.py'
Diffstat (limited to 'tests/functional/u/unsubscriptable_object.py')
-rw-r--r--tests/functional/u/unsubscriptable_object.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/u/unsubscriptable_object.py b/tests/functional/u/unsubscriptable_object.py
new file mode 100644
index 000000000..0b7da78b3
--- /dev/null
+++ b/tests/functional/u/unsubscriptable_object.py
@@ -0,0 +1,7 @@
+"""Tests for unscubscriptable-object"""
+
+# Test for typing.NamedTuple
+# See: https://github.com/PyCQA/pylint/issues/1295
+import typing
+
+MyType = typing.Tuple[str, str]