diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index e90a988b2490..09aefacce456 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -62,7 +62,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] = ...): ... @@ -474,7 +475,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 8532cff3f894..045c8b644144 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 6b494f0ae1f8..cca885b9f802 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 f303cac35d6a..37ceb794c5b4 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 88813de8881e..56ee19ac7b19 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -178,8 +178,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