Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion stdlib/3/tkinter/font.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class Font:
underline: bool = ...,
overstrike: bool = ...,
) -> None: ...
def __getitem__(self, key: str) -> Any: ...
def __setitem__(self, key: str, value: Any) -> None: ...
@overload
def cget(self, option: Literal["family"]) -> str: ...
Expand All @@ -59,6 +58,9 @@ class Font:
@overload
def cget(self, option: Literal["underline", "overstrike"]) -> Literal[0, 1]: ...
@overload
def cget(self, option: str) -> Any: ...
__getitem__ = cget
@overload
def actual(self, option: Literal["family"], displayof: Optional[tkinter.Misc] = ...) -> str: ...
@overload
def actual(self, option: Literal["size"], displayof: Optional[tkinter.Misc] = ...) -> int: ...
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_whitelists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ timeit.main
tkinter.Misc.grid_propagate
tkinter.Misc.pack_propagate
tkinter.Tk.report_callback_exception # A bit of a lie, since it's actually a method, but typing it as an attribute allows it to be assigned to
tkinter.font.Font.__getitem__ # Argument name differs (doesn't matter for __dunder__ methods)
trace.CoverageResults.__init__
traceback.FrameSummary.__init__
traceback.TracebackException.__init__
Expand Down