Add type hints for tomllib (#7432)

This commit is contained in:
Taneli Hukkinen authored and GitHub committed 2022-03-03 15:04:33 -08:00
1 parent c50cb066e0
commit 31b11c6eae
2 files changed
+9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
from _typeshed import SupportsRead
from collections.abc import Callable
from typing import Any
class TOMLDecodeError(ValueError): ...
def load(__fp: SupportsRead[bytes], *, parse_float: Callable[[str], Any] = ...) -> dict[str, Any]: ...
def loads(__s: str, *, parse_float: Callable[[str], Any] = ...) -> dict[str, Any]: ...