Skip to content

Commit 18a5277

Browse files
authored
Missing type argument on IO (#272)
1 parent 2b5aafb commit 18a5277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tomlkit/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def dumps(data: Mapping, sort_keys: bool = False) -> str:
5959
raise TypeError(msg) from ex
6060

6161

62-
def load(fp: IO) -> TOMLDocument:
62+
def load(fp: Union[IO[str], IO[bytes]]) -> TOMLDocument:
6363
"""
6464
Load toml document from a file-like object.
6565
"""

0 commit comments

Comments
 (0)