Skip to content

Commit 69c7b94

Browse files
improve type hints for IO.__init__
1 parent 0865426 commit 69c7b94

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cyaron/io.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,26 @@ def __init__(
2424
self,
2525
input_file: Optional[Union[IOBase, str, int]] = None,
2626
output_file: Optional[Union[IOBase, str, int]] = None,
27-
data_id: Optional[int] = None,
27+
*,
2828
disable_output: bool = False,
2929
make_dirs: bool = False,
30-
):
30+
) -> None:
3131
...
3232

3333
@overload
3434
def __init__(
3535
self,
36+
*,
3637
data_id: Optional[int] = None,
3738
file_prefix: Optional[str] = None,
3839
input_suffix: str = ".in",
3940
output_suffix: str = ".out",
4041
disable_output: bool = False,
4142
make_dirs: bool = False,
42-
):
43+
) -> None:
4344
...
4445

45-
def __init__( # type: ignore
46+
def __init__(
4647
self,
4748
input_file: Optional[Union[IOBase, str, int]] = None,
4849
output_file: Optional[Union[IOBase, str, int]] = None,

0 commit comments

Comments
 (0)