News for hackers. Stuff that matters.
Re:Show HN: Python-Type-Challenges, master Python typing wit... by karamanolev on Wednesday November 29, 2023 @06:03AM (#38457951)
Those are completely different.

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.

Re:Show HN: Python-Type-Challenges, master Python typing wit... by nicolaslem on Wednesday November 29, 2023 @06:06AM (#38457976)
Let's not forget ANY as in "from unittest.mock import ANY".
Re:Show HN: Python-Type-Challenges, master Python typing wit... by v3ss0n on Thursday November 30, 2023 @11:37AM (#38475571)
Whoops, I always thought I can use any as type. Damn my bad