Aug 27, 2024
typing
module and its deprecation since Python 3.9.typing
as T
and collections.abc
as C
.say_hello
function using Iterable
type from typing
.say_hello
names
as an iterable
type and returns None
.mypy
on the file shows no issues, despite the deprecation.typing.Iterable
and similar types are deprecated since Python 3.9.mypy
or PyCharm.collections.abc
for collection types.repeat
Callable
type for repeating a function a specified number of times.Iterable
, with Callable
being a deprecated alias to collections.abc.Callable
.