Skip to content

Commit d88b1ba

Browse files
add pyright check for examples only
1 parent 7ce2247 commit d88b1ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/async/parent_child.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,11 @@ async def save(self, **kwargs: Any) -> None: # type: ignore[override]
193193

194194
class Answer(Post):
195195
if TYPE_CHECKING:
196-
is_accepted: M[bool]
197196
_routing: str
198197
_index: AsyncIndex
199198

199+
is_accepted: M[bool]
200+
200201
@classmethod
201202
def _matches(cls, hit: Dict[str, Any]) -> bool:
202203
"""Use Answer class for child documents with child name 'answer'"""

examples/parent_child.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ def save(self, **kwargs: Any) -> None: # type: ignore[override]
192192

193193
class Answer(Post):
194194
if TYPE_CHECKING:
195-
is_accepted: M[bool]
196195
_routing: str
197196
_index: Index
198197

198+
is_accepted: M[bool]
199+
199200
@classmethod
200201
def _matches(cls, hit: Dict[str, Any]) -> bool:
201202
"""Use Answer class for child documents with child name 'answer'"""

0 commit comments

Comments
 (0)