mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add type hints for tomllib (#7432)
This commit is contained in:
8
stdlib/tomllib.pyi
Normal file
8
stdlib/tomllib.pyi
Normal 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]: ...
|
||||
Reference in New Issue
Block a user