Files
typeshed/stdlib
Jukka Lehtosalo 8a5d91ca37 Relax signature of logging.config.loadConfig (#6577)
I did a a cursory investigation using GitHub search and also looked at
a big internal codebase, and a significant fraction of callsites used
a dict type instead of a TypedDict or a dict literal.

It seems that it's a common use case to store the config within an
attribute. For example, something like this:

```
CONFIG = {
   ...
}

...
logging.config.dictConfig(CONFIG)
```

Another use case that was not properly supported is reading the
config from a file, and the config is given `dict[str, Any]` as
the type.

Mypy can still do some type checking of the argument if called
with a dict literal, so I feel this is a reasonable compromise
between type checking strictness and usability.
2021-12-13 07:31:15 -08:00
..
2021-12-05 16:53:26 +02:00
2021-11-28 22:42:23 +02:00
2021-11-29 11:07:20 -08:00
2021-05-06 18:57:33 +03:00
2021-11-26 21:52:52 +02:00
2021-12-10 21:48:46 -08:00
2021-08-11 20:49:30 -07:00
2021-12-06 17:36:09 +02:00
2021-11-30 23:19:30 -08:00
2021-11-02 20:23:30 -07:00
2021-04-14 19:14:07 -07:00
2021-12-09 14:28:35 +01:00
2021-12-06 09:24:01 +01:00
2021-12-06 16:21:27 -08:00
2021-11-27 23:11:53 -08:00
2021-12-09 21:15:27 -08:00