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
Merge requests
!22
Make MyPy happy
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Make MyPy happy
make-mypy-happy
into
master
Overview
6
Commits
13
Pipelines
0
Changes
9
All threads resolved!
Hide all comments
Merged
karp
requested to merge
make-mypy-happy
into
master
7 months ago
Overview
6
Commits
13
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Fixes for various type errors throw by mypy.
0
0
Merge request reports
Compare
version 5
version 8
4dcb6d31
7 months ago
version 7
59bbca69
7 months ago
version 6
44d9fde1
7 months ago
version 5
e2e69b26
7 months ago
version 4
7fa961af
7 months ago
version 3
3098ca66
7 months ago
version 2
de55edc5
7 months ago
version 1
4e80c09a
7 months ago
master (base)
and
version 6
latest version
e1c153f0
13 commits,
7 months ago
version 8
4dcb6d31
11 commits,
7 months ago
version 7
59bbca69
10 commits,
7 months ago
version 6
44d9fde1
9 commits,
7 months ago
version 5
e2e69b26
8 commits,
7 months ago
version 4
7fa961af
7 commits,
7 months ago
version 3
3098ca66
6 commits,
7 months ago
version 2
de55edc5
5 commits,
7 months ago
version 1
4e80c09a
4 commits,
7 months ago
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
portal/__init__.py
+
2
−
2
Options
# 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
*
Loading