Skip to content

Commit 08a4548

Browse files
committed
Fix Widget.{draw,demo}
1 parent 79392f8 commit 08a4548

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stubs/reportlab/reportlab/graphics/widgetbase.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from _typeshed import Incomplete
2+
from abc import abstractmethod
23
from typing import Final
34

45
from reportlab.graphics import shapes
@@ -15,9 +16,10 @@ class PropHolder:
1516
def dumpProperties(self, prefix: str = "") -> None: ...
1617

1718
class Widget(PropHolder, shapes.UserNode):
18-
# TODO: draw should probably be marked abstract
19-
def draw(self) -> None: ...
20-
def demo(self) -> None: ...
19+
@abstractmethod
20+
def draw(self): ...
21+
@abstractmethod
22+
def demo(self): ...
2123
def provideNode(self) -> shapes.Shape: ...
2224
def getBounds(self) -> tuple[float, float, float, float]: ...
2325

0 commit comments

Comments
 (0)