We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9898ea4 commit 2f0434fCopy full SHA for 2f0434f
mypy/typeshed/stdlib/logging/config.pyi
@@ -43,7 +43,12 @@ class _OptionalDictConfigArgs(TypedDict, total=False):
43
class _DictConfigArgs(_OptionalDictConfigArgs, TypedDict):
44
version: Literal[1]
45
46
-def dictConfig(config: _DictConfigArgs) -> None: ...
+# Accept dict[str, Any] to avoid false positives if called with a dict
47
+# type, since dict types are not compatible with TypedDicts.
48
+#
49
+# Also accept a TypedDict type, to allow callers to use TypedDict
50
+# types, and for somewhat stricter type checking of dict literals.
51
+def dictConfig(config: _DictConfigArgs | dict[str, Any]) -> None: ...
52
53
if sys.version_info >= (3, 10):
54
def fileConfig(
0 commit comments