Re: Suggestion. Replace Any with *

2022-06-13 Thread Chris Angelico
On Tue, 14 Jun 2022 at 01:59, h3ck phy wrote: > > 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". Type hints

Suggestion. Replace Any with *

2022-06-13 Thread h3ck phy
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". -- https://mail.python.org/mailman/listinfo/python-list