SIM108
false negative when variable has type annotation
#15554
Labels
rule
Implementing or modifying a lint rule
Assignment with
if/else
gets flagged withSIM108
, suggesting ternary operator. Good. But if the variable is annotated, not flagged:Could be
if
var annotated orelse
var, not flagged. Also not flagged if both vars have annotation, even if annotation is the same.The text was updated successfully, but these errors were encountered: