rspec/rules/S5890/python/message.adoc

8 lines
349 B
Plaintext

=== Message
* If the asignment value is not ``++None++`` then
** Primary: Assign to "XXX" a value of type "YYY" instead of "ZZZ" or update the type hint of "XXX".
** Secondary: Type hint.
* If the assignment value is ``++None++``
** Primary: Replace the type hint "XXX" with "Optional[XXX]" or don't assign "None" to "YYY"
** Secondary: Type hint.