redefined-variable-type / R0204#

Message emitted:

Redefinition of %s type from %s to %s

Description:

Used when the type of a variable changes inside a method or a function.

Correct code:

x = 1
x = 2

Problematic code:

x = 1
x = "2"  # [redefined-variable-type]

Note

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

Created by the multiple_types checker.