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

Add SQLAlchemy type annotations #69

Merged
merged 1 commit into from Mar 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion flexmeasures/data/config.py
@@ -1,12 +1,13 @@
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import MetaData
import sqlalchemy as sa
from flask_sqlalchemy import SQLAlchemy
from flask import Flask

from flexmeasures.data.models import naming_convention


db: SQLAlchemy = None # type: ignore
db: sa = None # typed attributes unavailable in flask-sqlalchemy, see https://github.com/pallets/flask-sqlalchemy/issues/867
Base = None # type: ignore
session_options = None

Expand Down