Commit 5fcc781ee86ffa8318ed02c00354fe40edb58814
1 parent
a566a5d6
Exists in
master
and in
1 other branch
add mypy.ini
update .gitignore
Showing
3 changed files
with
22 additions
and
3 deletions
Show diff stats
.gitignore
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | +[mypy] | |
| 2 | +python_version = 3.7 | |
| 3 | +# warn_return_any = True | |
| 4 | +# warn_unused_configs = True | |
| 5 | + | |
| 6 | +[mypy-sqlalchemy.*] | |
| 7 | +ignore_missing_imports = True | |
| 8 | + | |
| 9 | +[mypy-pygments.*] | |
| 10 | +ignore_missing_imports = True | |
| 11 | + | |
| 12 | +[mypy-bcrypt.*] | |
| 13 | +ignore_missing_imports = True | |
| 14 | + | |
| 15 | +[mypy-mistune.*] | |
| 16 | +ignore_missing_imports = True | ... | ... |
perguntations/serve.py
| ... | ... | @@ -140,7 +140,7 @@ class BaseHandler(tornado.web.RequestHandler): |
| 140 | 140 | |
| 141 | 141 | # --- ADMIN ------------------------------------------------------------------ |
| 142 | 142 | class AdminHandler(BaseHandler): |
| 143 | - SUPPORTED_METHODS = ['GET', 'POST'] | |
| 143 | + # SUPPORTED_METHODS = ['GET', 'POST'] | |
| 144 | 144 | |
| 145 | 145 | @tornado.web.authenticated |
| 146 | 146 | @admin_only |
| ... | ... | @@ -349,7 +349,7 @@ class TestHandler(BaseHandler): |
| 349 | 349 | |
| 350 | 350 | # --- REVIEW ----------------------------------------------------------------- |
| 351 | 351 | class ReviewHandler(BaseHandler): |
| 352 | - SUPPORTED_METHODS = ['GET'] | |
| 352 | + # SUPPORTED_METHODS = ['GET'] | |
| 353 | 353 | |
| 354 | 354 | _templates = { |
| 355 | 355 | 'radio': 'review-question-radio.html', | ... | ... |