mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
tkinter: font size must be integer (#11295)
This commit is contained in:
@@ -20,3 +20,11 @@ def foo(x: int, y: str) -> None:
|
||||
|
||||
root.after(1000, foo, 10, "lol")
|
||||
root.after(1000, foo, 10, 10) # type: ignore
|
||||
|
||||
|
||||
# Font size must be integer
|
||||
label = tkinter.Label()
|
||||
label.config(font=("", 12))
|
||||
label.config(font=("", 12.34)) # type: ignore
|
||||
label.config(font=("", 12, "bold"))
|
||||
label.config(font=("", 12.34, "bold")) # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user