Например, я бы хотел, чтобы VS Code предупреждал меня об этом возможном сравнении с None:
Код: Выделить всё
def test( index: int | None ) -> None:
""""Test possible compare to None."""
temp: int = 12
if temp < index:
print( "index is
Подробнее здесь: [url]https://stackoverflow.com/questions/79043580/need-warning-for-comparing-to-possible-none[/url]