Skip to content

Commit dcac3d6

Browse files
committed
update 1.8.2
1 parent e82e441 commit dcac3d6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/xulbux/console.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .string import String
1111
from .color import Color, Rgba, Hexa
1212

13-
from typing import Callable, Optional, Literal, Mapping, Any, cast
13+
from typing import Callable, Optional, Literal, Mapping, TypeVar, Any, cast
1414
from prompt_toolkit.key_binding import KeyPressEvent, KeyBindings
1515
from prompt_toolkit.validation import ValidationError, Validator
1616
from prompt_toolkit.styles import Style
@@ -729,8 +729,10 @@ def _(event):
729729
FormatCodes.print("[_]" if reset_ansi else "", end=end[1:] if end.startswith("\n") else end)
730730
return input_string
731731

732+
T = TypeVar("T")
733+
732734
@staticmethod
733-
def input[T](
735+
def input(
734736
prompt: object = "",
735737
start="",
736738
end="",
@@ -914,7 +916,7 @@ def _(event: KeyPressEvent) -> None:
914916
if result_text in ("", None):
915917
if has_default: return default_val
916918
result_text = ""
917-
919+
918920
if output_type == str:
919921
return result_text # type: ignore[return-value]
920922
else:

0 commit comments

Comments
 (0)