From b88d2208fdf99868663a49b93cdff547f08ce225 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 28 Feb 2021 13:07:23 +0100 Subject: Update astroid/brain/brain_typing.py Co-authored-by: Pierre Sassoulas --- astroid/brain/brain_typing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'astroid') 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 -- cgit v1.2.1