You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/07 22:17:36 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #14508: Adds verbose mode to prepare_provider_packages scripts/breeze cmds.

potiuk commented on a change in pull request #14508:
URL: https://github.com/apache/airflow/pull/14508#discussion_r589096946



##########
File path: dev/provider_packages/prepare_provider_packages.py
##########
@@ -438,7 +445,7 @@ def is_from_the_expected_base_package(the_class: Type, expected_package: str) ->
     return the_class.__module__.startswith(expected_package)
 
 
-def inherits_from(the_class: Type, expected_ancestor: Type) -> bool:
+def inherits_from(the_class: Type, expected_ancestor: Optional[Type]) -> bool:

Review comment:
       It's not strictly necessary. The 'optional' does not imply default (the case here was that the mypy realised that we can both - expect None here and pass it. but it does not have to be default (I added it thought).




----------------------------------------------------------------
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