mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 21:15:17 +08:00
Add type hints for tomllib (#7432)
This commit is contained in:
1 parent
c50cb066e0
commit
31b11c6eae
2 files changed
+9
No files matched your search
@@ -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]: ...
|
||||
Reference in new issue
Block a user