Skip to content

Conversation

@lmagyar
Copy link

@lmagyar lmagyar commented Nov 12, 2025

Proposed Changes

In mashumaro we have to add default values to fields that can be missing (see Fatal1ty/mashumaro#283 (comment))

As I see there were issues in the past, when TS removed fields, without notice, and that broke this API immediately. This PR will fill the missing optionals fields with None.

Note: #1265 also needed.

Related Issues

fixes #1262
closes #1263

to avoid errors like: TypeError: non-default argument 'client_version' follows default argument
@lmagyar lmagyar changed the title Add default None values to Optional fileds Add default None values to Optional fields Nov 12, 2025
@lmagyar
Copy link
Author

lmagyar commented Nov 12, 2025

I've tested this PR and #1265 in real life, they are working.

@github-actions
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Dec 13, 2025
@lmagyar
Copy link
Author

lmagyar commented Dec 13, 2025

not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Dec 14, 2025
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.

devices() raises InvalidFieldValue exception because hair_pinning is missing from ClientSupports

1 participant