Skip to content

Commit 856f4b4

Browse files
committed
fix: update type hint for format_text function and include docs/codes in pyright configuration
1 parent ff6b2e0 commit 856f4b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/codes/apply_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
def format_text(
5-
text_obj: tppt.Text, text: str, *, bold: bool = False, italic: bool = False
6-
) -> tppt.Text:
5+
text_obj: tppt.pptx.Text, text: str, *, bold: bool = False, italic: bool = False
6+
) -> tppt.pptx.Text:
77
paragraph = text_obj.text_frame.add_paragraph()
88
run = paragraph.add_run()
99
run.text = text

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ build-backend = "hatchling.build"
6666
exclude = ["**/site-packages", ".venv/**"]
6767

6868
[tool.pyright]
69-
include = ["src/tppt", "examples", "tests"]
69+
include = ["src/tppt", "examples", "tests", "docs/codes"]
7070
exclude = ["**/site-packages", ".venv/**"]
7171

7272
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)