Skip to content

Commit

Permalink
Missing type argument on IO (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Mar 3, 2023
1 parent 2b5aafb commit 18a5277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomlkit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def dumps(data: Mapping, sort_keys: bool = False) -> str:
raise TypeError(msg) from ex


def load(fp: IO) -> TOMLDocument:
def load(fp: Union[IO[str], IO[bytes]]) -> TOMLDocument:
"""
Load toml document from a file-like object.
"""
Expand Down

0 comments on commit 18a5277

Please sign in to comment.