Skip to content

Raise deprecation warning only when attribute is accessed#155

Open
cedk wants to merge 2 commits into
braintree:masterfrom
cedk:ChargebackProtectionLevel-warnings
Open

Raise deprecation warning only when attribute is accessed#155
cedk wants to merge 2 commits into
braintree:masterfrom
cedk:ChargebackProtectionLevel-warnings

Conversation

@cedk

@cedk cedk commented Jun 8, 2024

Copy link
Copy Markdown

Fixes #148

Summary

Importing the library should not trigger any deprecation warning but only when accessing the deprecated attribute.

Checklist

  • Added changelog entry
  • Ran unit tests (python3 -m unittest discover tests/unit)
  • I understand that unless this is a Draft PR or has a DO NOT MERGE label, this PR is considered to be in a deploy ready state and can be deployed if merged to main

@cedk

cedk commented Jul 30, 2024

Copy link
Copy Markdown
Author

ping

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.

Can't upgrade to Braintree 4.18.1 / Python 3.10.9 (DeprecationWarning: Use ProtectionLevel enum instead)

1 participant