Skip to content

Commit 6e9363a

Browse files
committed
fix: annotate title placeholder with documentation in test_slide_layout.py
1 parent 96d1fb4 commit 6e9363a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_slide_layout.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import datetime
22
from typing import Annotated, Any, ClassVar
33

4+
from typing_extensions import Doc
5+
46
from tppt import Presentation
57
from tppt.template.default import DefaultTitleSlideLayout
68
from tppt.template.slide_layout import (
@@ -113,7 +115,7 @@ def test_non_placeholder_fields(self):
113115

114116
class MixedLayout(SlideLayout):
115117
# Placeholder fields
116-
title: Placeholder[str]
118+
title: Annotated[Placeholder[str], Doc("Title")]
117119
subtitle: Placeholder[str | None] = None
118120

119121
# Regular fields (not placeholders)

0 commit comments

Comments
 (0)