summaryrefslogtreecommitdiff
path: root/tests/functional/t
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-07-19 22:10:10 +0200
committerGitHub <noreply@github.com>2021-07-19 22:10:10 +0200
commitf437752ae66dea1c2027dfb4b240b3d2287d89e7 (patch)
tree93fc7843f7526eb18901abbadc1f4284683ab29b /tests/functional/t
parentbf493bb85e4419411d648df1355a694a6106c4e3 (diff)
downloadpylint-git-f437752ae66dea1c2027dfb4b240b3d2287d89e7.tar.gz
Add regression test TypedDict not-callable (#4717)
Diffstat (limited to 'tests/functional/t')
-rw-r--r--tests/functional/t/typedDict.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/t/typedDict.py b/tests/functional/t/typedDict.py
index 0f908216e..3ce96b256 100644
--- a/tests/functional/t/typedDict.py
+++ b/tests/functional/t/typedDict.py
@@ -23,3 +23,9 @@ CustomTD5 = TypedDict("CustomTD5", {"var5": bool})
my_dict = CustomTD(var=1)
my_dict["var"]
my_dict["var"] = 2
+
+
+# https://github.com/PyCQA/pylint/issues/4715
+# Instance of TypedDict should be callable
+Link = TypedDict("Link", {"href": str})
+Link(href="foo")