Skip to content

Remove **kwargs from CRUD methods#12

Merged
pederhan merged 1 commit intomainfrom
rewrite-crud-methods
Apr 16, 2026
Merged

Remove **kwargs from CRUD methods#12
pederhan merged 1 commit intomainfrom
rewrite-crud-methods

Conversation

@pederhan
Copy link
Copy Markdown
Member

@pederhan pederhan commented Apr 16, 2026

Fixes #6

**kwargs removed

All CRUD methods have had **kwargs removed in favor of explicit Json and JsonMapping parameters. It is no longer ambiguous how JSON payload data is passed to MregClient.request().

Mapping types

This PR replaces all use of Mapping[str, Any] & dict[str, Any] in CRUD methods with JsonMapping (immutable) and dict[str, Json] (mutable).

Some cases still remain in other modules, but those are not directly related to the CRUD methods, and will be handled in separate PRs.

@pederhan pederhan merged commit 3548560 into main Apr 16, 2026
8 checks passed
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.

Fix usage of dict[str, Any] annotations.

1 participant