Skip to content

Commit 0ebe4c2

Browse files
authored
fix eval and call return types (#4451)
1 parent b438ccc commit 0ebe4c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/3/_tkinter.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class TclError(Exception): ...
3838
# Tkapp_UnicodeResult, and it returns a string when it succeeds.
3939
class TkappType:
4040
# Please keep in sync with tkinter.Tk
41-
def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> str: ...
42-
def eval(self, __script: str) -> Any: ...
41+
def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> Any: ...
42+
def eval(self, __script: str) -> str: ...
4343
adderrorinfo: Any
4444
createcommand: Any
4545
createfilehandler: Any

stdlib/3/tkinter/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ class Tk(Misc, Wm):
448448
report_callback_exception: Callable[[Type[BaseException], BaseException, TracebackType], Any]
449449
# Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
450450
# Please keep in sync with _tkinter.TkappType
451-
call: Callable[..., str]
452-
eval: Callable[[str], Any]
451+
call: Callable[..., Any]
452+
eval: Callable[[str], str]
453453
adderrorinfo: Any
454454
createcommand: Any
455455
createfilehandler: Any

0 commit comments

Comments
 (0)