Код: Выделить всё
from typing import Any
def printtype(arg:Any) -> None:
print(type(arg))
Код: Выделить всё
def printtype(arg) -> None:
print(type(arg))
Подробнее здесь: https://stackoverflow.com/questions/792 ... annotation
Код: Выделить всё
from typing import Any
def printtype(arg:Any) -> None:
print(type(arg))
Код: Выделить всё
def printtype(arg) -> None:
print(type(arg))