On Tue, 14 Jun 2022 at 01:59, h3ck phy <h3ck...@gmail.com> 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 are normal Python syntax. For this to be legal in a type hint, it would need to be legal in the rest of Python. What would it mean? some_object[other_object, *] ChrisA -- https://mail.python.org/mailman/listinfo/python-list