Skip to content

Commit

Permalink
Fixes mypy errors with type: ignore
Browse files Browse the repository at this point in the history
As I reported the issue, there is now an upstream PR
opened python/typeshed#2787

We can remove these two lines after a new typeshed release.
  • Loading branch information
kushaldas committed Feb 11, 2019
1 parent 948d7e9 commit 9d06704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion securedrop/journalist_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_app(config):
template_folder=config.JOURNALIST_TEMPLATES_DIR,
static_folder=path.join(config.SECUREDROP_ROOT, 'static'))

app.config.from_object(config.JournalistInterfaceFlaskConfig)
app.config.from_object(config.JournalistInterfaceFlaskConfig) # type: ignore
app.sdconfig = config
app.session_interface = JournalistInterfaceSessionInterface()

Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create_app(config):
template_folder=config.SOURCE_TEMPLATES_DIR,
static_folder=path.join(config.SECUREDROP_ROOT, 'static'))
app.request_class = RequestThatSecuresFileUploads
app.config.from_object(config.SourceInterfaceFlaskConfig)
app.config.from_object(config.SourceInterfaceFlaskConfig) # type: ignore
app.sdconfig = config

# The default CSRF token expiration is 1 hour. Since large uploads can
Expand Down

0 comments on commit 9d06704

Please sign in to comment.