fpdf2: annotate draw_color, fill_color, text_color (#9282)

This commit is contained in:
AMBER MURTUZA ANSARI
2022-12-02 02:16:36 +05:30
committed by GitHub
parent 3c9d1bd942
commit ba0e073430

View File

@@ -1,6 +1,6 @@
from typing import ClassVar
from .drawing import DeviceGray
from .drawing import DeviceGray, DeviceRGB
class GraphicsStateMixin:
DEFAULT_DRAW_COLOR: ClassVar[DeviceGray]
@@ -8,17 +8,17 @@ class GraphicsStateMixin:
DEFAULT_TEXT_COLOR: ClassVar[DeviceGray]
def __init__(self, *args, **kwargs) -> None: ...
@property
def draw_color(self): ...
def draw_color(self) -> DeviceGray | DeviceRGB: ...
@draw_color.setter
def draw_color(self, v) -> None: ...
def draw_color(self, v: DeviceGray | DeviceRGB) -> None: ...
@property
def fill_color(self): ...
def fill_color(self) -> DeviceGray | DeviceRGB: ...
@fill_color.setter
def fill_color(self, v) -> None: ...
def fill_color(self, v: DeviceGray | DeviceRGB) -> None: ...
@property
def text_color(self): ...
def text_color(self) -> DeviceGray | DeviceRGB: ...
@text_color.setter
def text_color(self, v) -> None: ...
def text_color(self, v: DeviceGray | DeviceRGB) -> None: ...
@property
def underline(self): ...
@underline.setter