You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtypingimportTypedDict, NamedTupleclassCustomDict(TypedDict):
alpha: intclassCustomTuple(NamedTuple):
beta: int
pylint 'magic.py'
************* Module magic
magic.py:3:0: E0239: Inheriting 'TypedDict', which is not a class. (inherit-non-class)
magic.py:6:0: E0239: Inheriting 'NamedTuple', which is not a class. (inherit-non-class)
See https://bugs.python.org/issue41973, the type of TypedDict/NamedTuple is now function, which apparently is a valid object to inherit from.
The text was updated successfully, but these errors were encountered: