Код: Выделить всё
array: list[list[str | None]] = []
# ...
item_text: str = ""
if array[0][col] is not None:
item_text = array[0][col]
Код: Выделить всё
Incompatible types in assignment (expression has type "str | None", variable has type "str")

Подробнее здесь: https://stackoverflow.com/questions/791 ... ould-i-fix
Мобильная версия