You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/06/02 18:20:43 UTC

[GitHub] [incubator-superset] john-bodley commented on a change in pull request #9943: style(mypy): Enforcing typing for superset module

john-bodley commented on a change in pull request #9943:
URL: https://github.com/apache/incubator-superset/pull/9943#discussion_r434086449



##########
File path: superset/app.py
##########
@@ -109,8 +111,8 @@ class AppContextTask(task_base):  # type: ignore
             abstract = True
 
             # Grab each call into the task and set up an app context
-            def __call__(self, *args, **kwargs):
-                with flask_app.app_context():
+            def __call__(self, *args: Any, **kwargs: Any) -> Any:
+                with flask_app.app_context():  # type: ignore

Review comment:
       @serenajiang `mypy` does use these stubs. I presume the Flask types aren't fully flushed out. I plan on creating a follow up PR which will check for erroneous `# type: ignore` comments which then can be removed as `mypy` continues to evolve. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org