Skip to content

fix eval and call return types #4451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/3/_tkinter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class TclError(Exception): ...
# Tkapp_UnicodeResult, and it returns a string when it succeeds.
class TkappType:
# Please keep in sync with tkinter.Tk
def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> str: ...
def eval(self, __script: str) -> Any: ...
def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> Any: ...
def eval(self, __script: str) -> str: ...
adderrorinfo: Any
createcommand: Any
createfilehandler: Any
Expand Down
4 changes: 2 additions & 2 deletions stdlib/3/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ class Tk(Misc, Wm):
report_callback_exception: Callable[[Type[BaseException], BaseException, TracebackType], Any]
# Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
# Please keep in sync with _tkinter.TkappType
call: Callable[..., str]
eval: Callable[[str], Any]
call: Callable[..., Any]
eval: Callable[[str], str]
adderrorinfo: Any
createcommand: Any
createfilehandler: Any
Expand Down