deprecated-typing-alias / W6001ΒΆ

Message emitted:

'%s' is deprecated, use '%s' instead


Emitted when a deprecated typing alias is used.

Problematic code:

import typing

item_to_number_of_item: typing.Dict[str, int]  # [deprecated-typing-alias]

Correct code:

item_to_number_of_item: dict[str, int]

Configuration file:

load-plugins = pylint.extensions.typing


This message is emitted by the optional 'typing' checker, which requires the pylint.extensions.typing plugin to be loaded.

Created by the typing checker.