diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index c8b3037d8..26b5ffee6 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -125,7 +125,8 @@ class Misc: def tk_strictMotif(self, boolean: Optional[Any] = ...): ... def tk_bisque(self): ... def tk_setPalette(self, *args, **kw): ... - def tk_menuBar(self, *args): ... + if sys.version_info < (3, 6): + def tk_menuBar(self, *args): ... def wait_variable(self, name: Union[str, Variable] = ...): ... waitvar: Any def wait_window(self, window: Optional[Any] = ...): ... @@ -537,7 +538,8 @@ class Listbox(Widget, XView, YView): class Menu(Widget): def __init__(self, master: Optional[Any] = ..., cnf=..., **kw): ... def tk_popup(self, x, y, entry: str = ...): ... - def tk_bindForTraversal(self): ... + if sys.version_info < (3, 6): + def tk_bindForTraversal(self): ... def activate(self, index): ... def add(self, itemType, cnf=..., **kw): ... def add_cascade(self, cnf=..., **kw): ... diff --git a/tests/stubtest_whitelists/py36.txt b/tests/stubtest_whitelists/py36.txt index 8532cff3f..045c8b644 100644 --- a/tests/stubtest_whitelists/py36.txt +++ b/tests/stubtest_whitelists/py36.txt @@ -39,8 +39,6 @@ secrets.SystemRandom.getstate smtplib.SMTP.sendmail sre_compile.dis ssl.SSLSocket.__init__ -tkinter.Menu.tk_bindForTraversal -tkinter.Misc.tk_menuBar typing.AbstractSet.isdisjoint typing.AsyncGenerator.ag_await typing.AsyncGenerator.ag_code diff --git a/tests/stubtest_whitelists/py37.txt b/tests/stubtest_whitelists/py37.txt index 6b494f0ae..cca885b9f 100644 --- a/tests/stubtest_whitelists/py37.txt +++ b/tests/stubtest_whitelists/py37.txt @@ -51,8 +51,6 @@ smtplib.SMTP.sendmail sre_constants.RANGE_IGNORE ssl.PROTOCOL_SSLv3 ssl.RAND_egd -tkinter.Menu.tk_bindForTraversal -tkinter.Misc.tk_menuBar types.ClassMethodDescriptorType.__get__ types.MethodDescriptorType.__get__ types.WrapperDescriptorType.__get__ diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index f303cac35..37ceb794c 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -79,8 +79,6 @@ ssl.PROTOCOL_SSLv3 ssl.RAND_egd sys.UnraisableHookArgs threading.ExceptHookArgs -tkinter.Menu.tk_bindForTraversal -tkinter.Misc.tk_menuBar types.ClassMethodDescriptorType.__get__ types.CodeType.replace types.MethodDescriptorType.__get__ diff --git a/tests/stubtest_whitelists/py39.txt b/tests/stubtest_whitelists/py39.txt index 7257211be..c7e3cfbcd 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -176,8 +176,6 @@ sys.UnraisableHookArgs threading.ExceptHookArgs time.CLOCK_PROF time.CLOCK_UPTIME -tkinter.Menu.tk_bindForTraversal -tkinter.Misc.tk_menuBar trace.Trace.runfunc types.ClassMethodDescriptorType.__get__ types.CodeType.replace