Skip to content

fix incorrect deprecation warnings on defaults #348

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

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

abn
Copy link
Collaborator

@abn abn commented Mar 3, 2022

This change ensures that deprecation warnings are only raised when
either a deprecated field is explicitly set or a deprecated message is
initialised.

Resolves: #347

This change ensures that deprecation warnings are only raised when
either a deprecated field is explicitly set or a deprecated message is
initialised.

Resolves: danielgtaylor#347
@abn abn requested a review from Gobot1234 March 3, 2022 17:38
Copy link
Collaborator

@Gobot1234 Gobot1234 left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@Gobot1234 Gobot1234 mentioned this pull request Mar 4, 2022
3 tasks
@abn
Copy link
Collaborator Author

abn commented Mar 11, 2022

Can we get this merged please? 🙏

@Gobot1234 Gobot1234 merged commit 69f4192 into danielgtaylor:master Mar 11, 2022
@abn abn deleted the issue/347 branch March 12, 2022 00:52
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.

Lazy initialisation of default values can cause unexpected behaviour
2 participants