From bbac0423190565c1a0391c0216b1c11faac5b769 Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Sat, 23 Aug 2025 15:13:32 +0200 Subject: [PATCH] lazy= is keyword-only in 0.5.0 --- CHANGELOG.md | 4 ++-- src/suou/sqlalchemy.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba0abfb..eaee5ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 0.4.1 - Fixed return types for `.sqlalchemy` module. -- `sqlalchemy.parent_children()` now takes a `lazy` parameter. Backported from 0.5.1. +- `sqlalchemy.parent_children()` now takes a `lazy` parameter. Backported from 0.5.0. ## 0.4.0 @@ -24,7 +24,7 @@ ## 0.3.8 - Fixed return types for `.sqlalchemy` module. -- `sqlalchemy.parent_children()` now takes a `lazy` parameter. Backported from 0.5.1. +- `sqlalchemy.parent_children()` now takes a `lazy` parameter. Backported from 0.5.0. ## 0.3.7 diff --git a/src/suou/sqlalchemy.py b/src/suou/sqlalchemy.py index 939a528..4c1ecd2 100644 --- a/src/suou/sqlalchemy.py +++ b/src/suou/sqlalchemy.py @@ -204,7 +204,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='selectin', **kwargs) -> tuple[Incomplete[Relationship], Incomplete[Relationship]]: """ Self-referential one-to-many relationship pair. Parent comes first, children come later.