Skip to content

Commit 0488652

Browse files
committed
Mark _Options as type check only
1 parent 69932c9 commit 0488652

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stubs/weasyprint/weasyprint/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from _typeshed import Incomplete
22
from collections.abc import Callable
33
from datetime import datetime
44
from pathlib import Path
5-
from typing import Any, BinaryIO, TextIO, TypeAlias, TypedDict
5+
from typing import Any, BinaryIO, TextIO, TypeAlias, TypedDict, type_check_only
66
from typing_extensions import Unpack
77
from xml.etree.ElementTree import Element
88

@@ -22,6 +22,7 @@ VERSION: str
2222
__version__: str
2323
DEFAULT_OPTIONS: _Options
2424

25+
@type_check_only
2526
class _Options(TypedDict):
2627
stylesheets: Incomplete
2728
attachments: Incomplete

0 commit comments

Comments
 (0)