mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-18 06:10:11 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from tkinter import Event, Misc, Tk, Widget
|
||||
from typing import ClassVar, Protocol
|
||||
from typing import ClassVar, Protocol, type_check_only
|
||||
|
||||
__all__ = ["dnd_start", "DndHandler"]
|
||||
|
||||
@type_check_only
|
||||
class _DndSource(Protocol):
|
||||
def dnd_end(self, target: Widget | None, event: Event[Misc] | None, /) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user