Skip to content

DeprecationWarning: The '__version__' attribute is deprecated and will be removed in Flask 3.1 #542

@yctomwang

Description

@yctomwang

Hi @vimalloc, thank you for such an awesome libarary! I have downloaded the code to playaround with it, however when i run pytest on the unit tests its showing a Deprecation warning. I will propose a quick PR to fix this if you dont mind! Thank you once again!
================================================================================ warnings summary =================================================================================
tests/test_config.py:7
tests/test_config.py:7
/Users/yuanchenwang/Desktop/flask-jwt-extended/tests/test_config.py:7: DeprecationWarning: The 'version' attribute is deprecated and will be removed in Flask 3.1. Use feature detection or 'importlib.metadata.version("flask")' instead.
from flask import version as flask_version

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions