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

only trigger deprecation warnings for non-empty attributes #5

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

hugowetterberg
Copy link
Contributor

A deprecation that targeted the use of an attribute would always trigger, now we're only checking for deprecations on non-empty attributes.

A deprecation that targeted the use of an attributte would always trigger, now
we're only checking for deprecations on non-empty attributes.
@danijelvukoje
Copy link

I'm wondering if it might still be valuable for the caller to be aware of the deprecated attribute, even when it’s empty. Wouldn't it help guide users away from using deprecated fields altogether?

@hugowetterberg
Copy link
Contributor Author

Well, the problem is that there is no way to distinguish between an empty attribute and an unset attribute, so once you unconditionally deprecate an attribute the warning would always trigger.

Copy link

@danijelvukoje danijelvukoje left a comment

Choose a reason for hiding this comment

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

Noted, thanks!

@hugowetterberg hugowetterberg merged commit 79759b0 into main Oct 15, 2024
2 checks passed
@hugowetterberg hugowetterberg deleted the feature/empty-attribute-deprecation branch October 15, 2024 17:18
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.

2 participants