Skip to content

Commit c3627c1

Browse files
committed
Fix type hints
1 parent 87756cf commit c3627c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

consolekit/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ def abort(message: str, colour: ColourTrilean = None) -> Exception:
142142
return click.Abort()
143143

144144

145-
def overtype(*objects, sep: str = ' ', end: str = '', file: IO = None, flush: bool = False) -> None:
145+
def overtype(
146+
*objects,
147+
sep: str = ' ',
148+
end: str = '',
149+
file: Optional[IO] = None,
150+
flush: bool = False,
151+
) -> None:
146152
"""
147153
Print ``objects`` to the text stream ``file``, starting with ``"\\r"``, separated by ``sep``
148154
and followed by ``end``.

0 commit comments

Comments
 (0)