Fix type narrowing of == None and in (None,) conditions
#15760
Merged
== None and in (None,) conditions
#15760