Код: Выделить всё
def foo1(arg: tuple[datetime, int] | tuple[datetime, None]) -> datetime:
...
def foo2(arg: tuple[datetime, int | None]) -> datetime:
...
Насколько я могу судить, они логически эквивалентны; они?
Подробнее здесь: https://stackoverflow.com/questions/769 ... d-for-mypy