make lazy keyword-only as in 0.5.0

This commit is contained in:
Yusur 2025-08-23 15:12:35 +02:00
parent a66f591997
commit 844b844e58

View file

@ -194,7 +194,7 @@ def age_pair(*, nullable: bool = False, **ka) -> tuple[Column, Column]:
return (date_col, acc_col)
def parent_children(keyword: str, /, lazy='selectin', **kwargs) -> tuple[Incomplete[Relationship], Incomplete[Relationship]]:
def parent_children(keyword: str, /, *, lazy: str = 'selectin', **kwargs) -> tuple[Incomplete[Relationship], Incomplete[Relationship]]:
"""
Self-referential one-to-many relationship pair.
Parent comes first, children come later.