Yes, the semantic difference is very big. I don't think we should do that.
Moreover, it can backfire if we decide to use functions-as-types.

If you really think that `import Any` is such a big problem, you can instead suggest making `Any` a builtin.
This is a big change as well, but at least the semantics would be correct.

In my opinion, `from typing import Any` is good enough :)

вт, 22 нояб. 2022 г. в 14:14, Samuel Colvin <S@muelcolvin.com>:
I would agree: the fact that `any` exists but cannot be used like `Any` is pretty confusing.

But I do see that `any` vs. `Any` is semantically very different to `list` vs. `List`.

I suggested the same thing on twitter a few months ago and got pretty universally shot down.

Samuel

--

Samuel Colvin


On Tue, 22 Nov 2022 at 10:49, Thomas Kehrenberg <tmke@posteo.net> wrote:
But wouldn't that be quite confusing because `any` is actually a
function on bools, and not a type?
_______________________________________________
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: samcolvin@gmail.com
_______________________________________________
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: n.a.sobolev@gmail.com