Adjust pylint plugin for return type inheritance (#90046)

This commit is contained in:
epenet
2023-03-26 18:37:26 +02:00
committed by GitHub
parent bec7bbeb92
commit 6e92dac61f
2 changed files with 9 additions and 10 deletions

View File

@@ -724,6 +724,7 @@ def test_invalid_mapping_return_type(
"-> Mapping[str, bool | int]",
"-> dict[str, Any]",
"-> dict[str, str]",
"-> CustomTypedDict",
],
)
def test_valid_mapping_return_type(
@@ -737,6 +738,11 @@ def test_valid_mapping_return_type(
class_node = astroid.extract_node(
f"""
from typing import TypedDict
class CustomTypedDict(TypedDict):
pass
class Entity():
pass