Skip to content

♻️ simplify writer on the user side#351

Merged
casenave merged 16 commits intomainfrom
simplify/writer
Mar 25, 2026
Merged

♻️ simplify writer on the user side#351
casenave merged 16 commits intomainfrom
simplify/writer

Conversation

@casenave
Copy link
Copy Markdown
Member

@casenave casenave commented Mar 24, 2026

Checklist

  • Typing enforced
  • Documentation updated
  • Changelog updated
  • Tests and Example updates
  • Coverage should be 100%

Related issues

Closes #353

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@casenave casenave marked this pull request as ready for review March 25, 2026 11:54
@casenave casenave requested a review from a team as a code owner March 25, 2026 11:54
Comment thread src/plaid/storage/writer.py Outdated
def _extract_ids_from_partial(
gen: partial,
split_name: str,
) -> tuple[Any, Callable, tuple, dict]:
Copy link
Copy Markdown
Contributor

@bstaber bstaber Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

difficile à comprendre mais ça a l'air d'être correct avec ce que la fonction produit

Comment thread src/plaid/storage/writer.py Outdated
gen_kwargs: dict[str, dict[str, Any]] = {}

for split_name, gen in generators.items():
if not isinstance(gen, partial):
Copy link
Copy Markdown
Contributor

@bstaber bstaber Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if after this we could make it even simpler to avoid making the user import functools.partial etc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll simplify further

@casenave casenave merged commit 02be596 into main Mar 25, 2026
21 checks passed
@casenave casenave deleted the simplify/writer branch March 25, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

writer: simplify user-facing code

3 participants