diff options
| author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-02-28 13:07:23 +0100 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-28 18:14:22 +0100 |
| commit | b88d2208fdf99868663a49b93cdff547f08ce225 (patch) | |
| tree | 58c4d42ac04637c851c7f3319d4cc4734f0c4afe /astroid | |
| parent | b7b8c020a27f1b8d2b1b3a32c057dc56248dad55 (diff) | |
| download | astroid-git-b88d2208fdf99868663a49b93cdff547f08ce225.tar.gz | |
Update astroid/brain/brain_typing.py
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'astroid')
| -rw-r--r-- | astroid/brain/brain_typing.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/astroid/brain/brain_typing.py b/astroid/brain/brain_typing.py index ea968e51..021eb5e0 100644 --- a/astroid/brain/brain_typing.py +++ b/astroid/brain/brain_typing.py @@ -91,9 +91,7 @@ def _looks_like_typedDict( # pylint: disable=invalid-name node: nodes.FunctionDef, ) -> bool: """Check if node is TypedDict FunctionDef.""" - if isinstance(node, nodes.FunctionDef) and node.name == "TypedDict": - return True - return False + return isinstance(node, nodes.FunctionDef) and node.name == "TypedDict" def infer_typedDict( # pylint: disable=invalid-name |
