Skip to content

Commit 88e9688

Browse files
committed
Annotate color_profiles
1 parent 0425f51 commit 88e9688

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

stubs/weasyprint/weasyprint/__init__.pyi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ from xml.etree.ElementTree import Element
88
from csselect2 import ElementWrapper
99

1010
from .css.counters import CounterStyle
11+
from .css import ColorProfile
1112
from .document import Document as Document, Page as Page
1213
from .text.fonts import FontConfiguration
1314
from .urls import URLFetcher, default_url_fetcher as default_url_fetcher
@@ -63,7 +64,7 @@ class HTML:
6364
self,
6465
font_config: FontConfiguration | None = None,
6566
counter_style: CounterStyle | None = None,
66-
color_profiles=None,
67+
color_profiles: dict[str, ColorProfile] | None=None,
6768
**options,
6869
) -> Document: ...
6970
def write_pdf(
@@ -73,7 +74,7 @@ class HTML:
7374
finisher: Callable[[Document, PDF], Any] | None = None,
7475
font_config: FontConfiguration | None = None,
7576
counter_style: CounterStyle | None = None,
76-
color_profiles=None,
77+
color_profiles: dict[str, ColorProfile] | None = None,
7778
**options,
7879
) -> bytes | None: ...
7980

@@ -94,9 +95,9 @@ class CSS:
9495
url_fetcher: URLFetcher | None = None,
9596
_check_mime_type: bool = False,
9697
media_type: str = "print",
97-
font_config=None,
98-
counter_style=None,
99-
color_profiles=None,
98+
font_config: FontConfiguration | None = None,
99+
counter_style: CounterStyle | None = None,
100+
color_profiles: dict[str, ColorProfile] | None = None,
100101
matcher=None,
101102
page_rules=None,
102103
layers=None,

0 commit comments

Comments
 (0)