consider-alternative-union-syntax / R6003#

Message emitted:

Consider using alternative Union syntax instead of '%s'%s

Description:

Emitted when 'typing.Union' or 'typing.Optional' is used instead of the alternative Union syntax 'int | None'.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !

Note

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

Created by the typing checker.