Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
44d9fde1
Verified
Commit
44d9fde1
authored
7 months ago
by
Jakob Moser
Browse files
Options
Downloads
Patches
Plain Diff
Remove likely unneeded annotation
db = SQLAlchemy() should be enough to already infer the type of the variable
parent
e2e69b26
No related branches found
Branches containing commit
No related tags found
1 merge request
!22
Make MyPy happy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
portal/__init__.py
+2
-2
2 additions, 2 deletions
portal/__init__.py
with
2 additions
and
2 deletions
portal/__init__.py
+
2
−
2
View file @
44d9fde1
# 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.
import
secrets
from
typing
import
Any
,
Optional
from
typing
import
Optional
from
pathlib
import
Path
from
flask
import
Flask
...
...
@@ -9,7 +9,7 @@ from flask_sqlalchemy import SQLAlchemy
from
.db_config
import
get_database_uri
,
get_uri_for_sqlite
db
:
Any
=
SQLAlchemy
()
db
=
SQLAlchemy
()
from
.model
import
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment