Skip to content

Commit 7e70449

Browse files
committed
fix type annotation
1 parent 9c38fbb commit 7e70449

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/infrastructure/email.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def replace(self, string_part: str) -> str:
3636
right: str = part[1]
3737
return f"{self.params.get(param, '')}{right}"
3838

39-
async def parse(self, html_page: HTMLPage, **params) -> HTMLPage:
39+
async def parse(self, html_page: HTMLPage, **params) -> HTMLPage: # type: ignore[no-untyped-def]
4040
"""
4141
Main method that fills parameters' values into template page
4242

tests/infrastructure/email.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class TestTemplater:
88
def html_template(self) -> HTMLPage:
99
return HTMLPage("<html><p>{{param1}}</p><p>{{param2}}</p></html>")
1010

11-
async def test_templater(self, html_template: HTMLPage):
11+
async def test_templater(self, html_template: HTMLPage) -> None:
1212
async with Templater() as templater:
1313
response = await templater.parse(html_page=html_template, param1="value1", param2="value2")
1414

0 commit comments

Comments
 (0)