Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
[tkinter.ttk] Added type annotations forStyle
, fix some other incomplete parts#14348
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Is this a stubtest bug? Itsays
But on line 137, it has no default argument... It also seems to concatenate the overloaded functions' signatures together as it infers the signatue in the stub to be:
|
According tomypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
For the
|
# also be given positionally so are in practise positional-only). Therefore, stubtest complains. | ||
# (I'm not sure if this is the best way to handle this - ignoring the | ||
# stubtest error would result in stubs that actually match the code) | ||
_default_image: tkinter._ImageSpec, | ||
*imagespec: _ImageStatespec, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Kinda awkward but you could do*imagespec: *tuple[tkinter._ImageSpec, *tuple[_ImageStatespec, ...]]
. Not sure if this would be problematic to use though for code completion though.
tkinter.ttk.Style
setup_master
,Panedwindow.forget
)