Initialisierung Start

This commit is contained in:
2024-11-08 23:04:20 +01:00
parent 2eeb0e0852
commit 835de6fbf9
6938 changed files with 1514408 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
from __future__ import annotations
import typing as t
from .extension import SQLAlchemy
__all__ = [
"SQLAlchemy",
]
def __getattr__(name: str) -> t.Any:
if name == "__version__":
import importlib.metadata
import warnings
warnings.warn(
"The '__version__' attribute is deprecated and will be removed in"
" Flask-SQLAlchemy 3.2. Use feature detection or"
" 'importlib.metadata.version(\"flask-sqlalchemy\")' instead.",
DeprecationWarning,
stacklevel=2,
)
return importlib.metadata.version("flask-sqlalchemy")
raise AttributeError(name)