Suggestion. Replace Any with *

h3ck phy h3ckphy at gmail.com
Mon Jun 13 07:18:29 EDT 2022


It would be nice if we could write something like this
data: dict[str, *] = {}
instead of
data: dict[str, Any] = {}

In import statement asterisk means "all names" in a module.
But in type closure it should mean "all types".


More information about the Python-list mailing list