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

deprecate __version__ #217

Merged
merged 1 commit into from
May 23, 2024
Merged

deprecate __version__ #217

merged 1 commit into from
May 23, 2024

Conversation

davidism
Copy link
Member

__version__ was an old pattern from before package metadata introspection was powerful. Nowadays, use feature detections (hasattr, try/except, etc.) or importlib.metadata.version("flask-mail") if you need to support multiple versions.

@davidism davidism merged commit 56914a8 into main May 23, 2024
7 checks passed
@davidism davidism deleted the deprecate-version branch May 23, 2024 16:11
@davidism davidism added this to the 0.10.0 milestone May 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant