Skip to content
Snippets Groups Projects
Verified Commit 44d9fde1 authored by Jakob Moser's avatar Jakob Moser
Browse files

Remove likely unneeded annotation

db = SQLAlchemy() should be enough to already infer the type of the variable
parent e2e69b26
No related branches found
No related tags found
1 merge request!22Make MyPy happy
# Taken and adapted from the flaskr tutorial. Database logic adapted from Flask SQLAlchemy Documentation # Taken and adapted from the flaskr tutorial. Database logic adapted from Flask SQLAlchemy Documentation
# (https://flask-sqlalchemy.palletsprojects.com/en/2.x/contexts/). See LICENSE-3RD-PARTY.md for details. # (https://flask-sqlalchemy.palletsprojects.com/en/2.x/contexts/). See LICENSE-3RD-PARTY.md for details.
import secrets import secrets
from typing import Any, Optional from typing import Optional
from pathlib import Path from pathlib import Path
from flask import Flask from flask import Flask
...@@ -9,7 +9,7 @@ from flask_sqlalchemy import SQLAlchemy ...@@ -9,7 +9,7 @@ from flask_sqlalchemy import SQLAlchemy
from .db_config import get_database_uri, get_uri_for_sqlite from .db_config import get_database_uri, get_uri_for_sqlite
db: Any = SQLAlchemy() db = SQLAlchemy()
from .model import * from .model import *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment