Skip to content
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

add tkinter.tix.Form to the bases of tkinter.Widget #12751

Closed
wants to merge 1 commit into from

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Oct 7, 2024

At runtime, it's added directly to Widget.__bases__ dynamically, rather than being an actual base.

I'm curious to see if there's any problems in the test suite from typeshed treating it as a base.

related to #3968

At runtime, it's added directly to Widget.__bases__ dynamically,
rather than being an actual base.
@tungol
Copy link
Contributor Author

tungol commented Oct 7, 2024

Pretty clear answer!

@tungol tungol closed this Oct 7, 2024
@tungol tungol deleted the tkinter branch October 7, 2024 00:04
Copy link
Contributor

github-actions bot commented Oct 7, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/utils.py:733: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:620: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:622: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:705: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:782: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:791: error: Cannot determine type of "config"  [has-type]
+ porcupine/settings.py:828: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:498: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:513: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:592: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:595: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:649: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:699: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:832: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:839: error: Cannot determine type of "config"  [has-type]
+ porcupine/textutils.py:892: error: Cannot determine type of "config"  [has-type]
+ porcupine/tabs.py:637: error: Cannot determine type of "config"  [has-type]
+ porcupine/tabs.py:712: error: Cannot determine type of "config"  [has-type]
+ porcupine/tabs.py:749: error: Cannot determine type of "config"  [has-type]
+ porcupine/tabs.py:766: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/welcome.py:56: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/welcome.py:59: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:41: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:51: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:69: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:71: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:72: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:77: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:85: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/statusbar.py:88: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/minimap.py:32: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/minimap.py:41: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/minimap.py:78: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/minimap.py:85: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/minimap.py:87: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/longlinemarker.py:60: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/longlinemarker.py:64: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/linenumbers.py:43: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/linenumbers.py:79: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/linenumbers.py:81: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/desktop_menu.py:75: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:57: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:104: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:107: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:175: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:178: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:255: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/autocomplete.py:258: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:101: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:113: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:114: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:116: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:117: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/mergeconflict.py:118: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:72: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:121: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:124: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:174: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:176: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:202: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:206: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:211: error: Cannot determine type of "config"  [has-type]
+ porcupine/pluginmanager.py:212: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/wrap.py:35: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/porcupine_debug_prompt.py:44: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/poppingtabs.py:84: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/poppingtabs.py:87: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/directory_tree.py:491: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/aboutdialog.py:129: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/aboutdialog.py:162: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:138: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:220: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:221: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:222: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:237: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:239: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:269: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:273: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:293: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:295: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:297: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:308: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:343: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:359: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:361: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:363: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:377: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/find.py:379: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/no_terminal.py:302: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/no_terminal.py:333: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:46: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:49: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:51: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:54: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:96: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:98: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:213: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/run/dialog.py:215: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/filemanager.py:107: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/filemanager.py:113: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/filemanager.py:127: error: Cannot determine type of "config"  [has-type]
+ porcupine/plugins/filemanager.py:136: error: Cannot determine type of "config"  [has-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant