mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
chore: Update mypy and fix stubs issue (#24033)
This commit is contained in:
@@ -587,7 +587,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
CORS(self.superset_app, **self.config["CORS_OPTIONS"])
|
||||
|
||||
if self.config["ENABLE_PROXY_FIX"]:
|
||||
self.superset_app.wsgi_app = ProxyFix( # type: ignore
|
||||
self.superset_app.wsgi_app = ProxyFix(
|
||||
self.superset_app.wsgi_app, **self.config["PROXY_FIX_CONFIG"]
|
||||
)
|
||||
|
||||
@@ -606,9 +606,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
environ["wsgi.input_terminated"] = True
|
||||
return self.app(environ, start_response)
|
||||
|
||||
self.superset_app.wsgi_app = ChunkedEncodingFix( # type: ignore
|
||||
self.superset_app.wsgi_app # type: ignore
|
||||
)
|
||||
self.superset_app.wsgi_app = ChunkedEncodingFix(self.superset_app.wsgi_app)
|
||||
|
||||
if self.config["UPLOAD_FOLDER"]:
|
||||
try:
|
||||
@@ -617,9 +615,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
pass
|
||||
|
||||
for middleware in self.config["ADDITIONAL_MIDDLEWARE"]:
|
||||
self.superset_app.wsgi_app = middleware( # type: ignore
|
||||
self.superset_app.wsgi_app
|
||||
)
|
||||
self.superset_app.wsgi_app = middleware(self.superset_app.wsgi_app)
|
||||
|
||||
# Flask-Compress
|
||||
Compress(self.superset_app)
|
||||
|
||||
Reference in New Issue
Block a user