Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Models: Fix typing issue for optional fields. #6

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

tbenhamou
Copy link
Contributor

In case an attribute has a default value of None, the typing hint should specify it's optional.

BTW, why to use attrs and not the native dataclasses module of Python? It's a way more simple...

@tbenhamou tbenhamou marked this pull request as draft June 20, 2023 08:29
@tbenhamou tbenhamou marked this pull request as ready for review June 20, 2023 08:47
@alexanderjordanbaker
Copy link
Collaborator

@tbenhamou Thank you for opening this pull request. Could you please confirm this PR follows our licensing guidelines as in https://github.com/apple/app-store-server-library-python/blob/main/CONTRIBUTING.md#project-licensing

@tbenhamou
Copy link
Contributor Author

@tbenhamou Thank you for opening this pull request. Could you please confirm this PR follows our licensing guidelines as in main/CONTRIBUTING.md#project-licensing

It does :)

@alexanderjordanbaker alexanderjordanbaker merged commit 29123bf into apple:main Jul 10, 2023
5 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.

None yet

2 participants