mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add type hints for tomllib (#7432)
This commit is contained in:
@@ -262,6 +262,7 @@ timeit: 2.7-
|
||||
tkinter: 3.0-
|
||||
token: 2.7-
|
||||
tokenize: 2.7-
|
||||
tomllib: 3.11-
|
||||
trace: 2.7-
|
||||
traceback: 2.7-
|
||||
tracemalloc: 3.4-
|
||||
|
||||
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