Skip to content

Commit 3dabd64

Browse files
Fix mypy
1 parent 4924f3d commit 3dabd64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyhtml/__tags/comment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, text: str) -> None:
3434
self.comment_data = text
3535
super().__init__()
3636

37-
def __call__(self):
37+
def __call__(self, *args, **kwargs):
3838
raise TypeError('Comment tags are not callable')
3939

4040
def _get_tag_name(self) -> str:

pyhtml/__tags/dangerous_raw_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, text: str) -> None:
3737
self.html_data = text
3838
super().__init__()
3939

40-
def __call__(self):
40+
def __call__(self, *args, **kwargs):
4141
raise TypeError('DangerousRawHtml tags are not callable')
4242

4343
def _get_tag_name(self) -> str:

0 commit comments

Comments
 (0)