3 ms·
Those are completely different. any - https://docs.python.org/3/library/functions.html#any https://docs.python.org/3/library/functions.html#any - Return True i
by karamanolev 3y ago
Those 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.
- nicolaslem 3y agoLet's not forget ANY as in "from unittest.mock import ANY".
- v3ss0n 3y agoWhoops, I always thought I can use any as type. Damn my bad