Skip to content

Commit b0e0995

Browse files
committed
Adjust exports
1 parent fb7c9af commit b0e0995

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

stubs/weasyprint/weasyprint/__init__.pyi

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ __all__ = [
2626
"Page",
2727
"__version__",
2828
"default_url_fetcher",
29-
"Options",
30-
"PageRule",
31-
"Selector",
3229
]
3330

3431
VERSION: str
3532
__version__: str
36-
DEFAULT_OPTIONS: Options
33+
DEFAULT_OPTIONS: _Options
3734

38-
class Options(TypedDict):
35+
class _Options(TypedDict):
3936
stylesheets: Incomplete
4037
attachments: Incomplete
4138
attachment_relationships: Incomplete
@@ -56,8 +53,8 @@ class Options(TypedDict):
5653
hinting: Incomplete
5754
cache: Incomplete
5855

59-
Selector: TypeAlias = tuple[Incomplete, str | None, Incomplete]
60-
PageRule: TypeAlias = tuple[Incomplete, list[Selector], Incomplete]
56+
_Selector: TypeAlias = tuple[Incomplete, str | None, Incomplete]
57+
_PageRule: TypeAlias = tuple[Incomplete, list[_Selector], Incomplete]
6158

6259
class HTML:
6360
base_url: str | Path | None # undocumented
@@ -82,7 +79,7 @@ class HTML:
8279
font_config: FontConfiguration | None = None,
8380
counter_style: CounterStyle | None = None,
8481
color_profiles: dict[str, ColorProfile] | None = None,
85-
**options: Unpack[Options],
82+
**options: Unpack[_Options],
8683
) -> Document: ...
8784
def write_pdf(
8885
self,
@@ -92,13 +89,13 @@ class HTML:
9289
font_config: FontConfiguration | None = None,
9390
counter_style: CounterStyle | None = None,
9491
color_profiles: dict[str, ColorProfile] | None = None,
95-
**options: Unpack[Options],
92+
**options: Unpack[_Options],
9693
) -> bytes | None: ...
9794

9895
class CSS:
9996
base_url: str | Path | None # undocumented
10097
matcher: _Matcher # undocumented
101-
page_rules: list[PageRule] # undocumented
98+
page_rules: list[_PageRule] # undocumented
10299
layers: list[str] # undocumented
103100
def __init__(
104101
self,
@@ -116,7 +113,7 @@ class CSS:
116113
counter_style: CounterStyle | None = None,
117114
color_profiles: dict[str, ColorProfile] | None = None,
118115
matcher: _Matcher | None = None,
119-
page_rules: list[PageRule] | None = None,
116+
page_rules: list[_PageRule] | None = None,
120117
layers: list[str] | None = None,
121118
layer: str | None = None,
122119
) -> None: ...

0 commit comments

Comments
 (0)