Skip to content

Commit 724709a

Browse files
committed
Remove pyright ignores
The project's pyright config doesn't care about these, only my local basedpyright setup.
1 parent 7a3ff6b commit 724709a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

htpy/_with_children.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ def __getitem__(self, children: C | None) -> R:
7171
#
7272
# my_component["My content"]
7373
#
74-
return self.wrapped(children) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
74+
return self.wrapped(children) # type: ignore[call-arg]
7575

7676
def __str__(self) -> _Markup:
7777
# This is the unbound component being rendered to a string:
7878
#
7979
# str(my_component)
8080
#
81-
return _Markup(self.wrapped(None)) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
81+
return _Markup(self.wrapped(None)) # type: ignore[call-arg]
8282

8383
__html__ = __str__
8484

@@ -89,7 +89,7 @@ def iter_chunks(
8989
self,
9090
context: Mapping[htpy.Context[t.Any], t.Any] | None = None,
9191
) -> Iterator[str]:
92-
return self.wrapped(None).iter_chunks(context) # type: ignore[call-arg] # pyright: ignore
92+
return self.wrapped(None).iter_chunks(context) # type: ignore[call-arg]
9393

9494

9595
class _WithChildrenBound(t.Generic[C, P, R]):
@@ -136,7 +136,7 @@ def iter_chunks(
136136
self,
137137
context: Mapping[htpy.Context[t.Any], t.Any] | None = None,
138138
) -> Iterator[str]:
139-
return self._func(None, *self._args, **self._kwargs).iter_chunks(context) # pyright: ignore
139+
return self._func(None, *self._args, **self._kwargs).iter_chunks(context)
140140

141141

142142
with_children = _WithChildrenUnbound

0 commit comments

Comments
 (0)