ashb commented on a change in pull request #10956:
URL: https://github.com/apache/airflow/pull/10956#discussion_r489378122



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -303,10 +303,10 @@ def done(self) -> bool:
         return False
 
     @property
-    def result(self) -> Optional[Tuple[List[dict], int]]:
+    def result(self) -> Optional[int]:
         """
         :return: result of running SchedulerJob.process_file()
-        :rtype: Optional[Tuple[List[dict], int]]
+        :rtype: int or None

Review comment:
       Doc typing uses a different syntax to type comments 
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists:
   
   > Multiple types in a type field will be linked automatically if separated 
by the word “or”:
   > ```
   > :type an_arg: int or None
   > :vartype a_var: str or int
   > :rtype: float or str
   > ```
   
   




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to