3 ms·
it don't mention python version. `any` is available by default in python 3.10 +
by v3ss0n 3y ago
it don't mention python version. `any` is available by default in python 3.10 +
- karamanolev 3y agoThose are completely different. any - https://docs.python.org/3/library/functions.html#any https://docs.python.org/3/library/functions.html#any - Return True if any element of the iterable is true. Any - A special kind of type is Any. A static type checker will treat every type as being compatible with Any and Any as being compatible with every type. error: Function "builtins.any" is not valid as a type [valid-type] note: Perhaps you meant "typing.Any" instead of "any"?
- throwaway81523 3y agoThe typing exercise should say Any rather than any, and similarly for other type names.