Suggestion. Replace Any with *
h3ck phy
h3ckphy at gmail.com
Mon Jun 13 07:18:29 EDT 2022
More information about the Python-list mailing list
Mon Jun 13 07:18:29 EDT 2022
- Previous message (by thread): python Store text file in mangodb
- Next message (by thread): Suggestion. Replace Any with *
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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".
- Previous message (by thread): python Store text file in mangodb
- Next message (by thread): Suggestion. Replace Any with *
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list