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



##########
File path: airflow/utils/operator_helpers.py
##########
@@ -164,7 +164,7 @@ def determine(
 
     def unpacking(self) -> Mapping[str, Any]:
         """Dump the kwargs mapping to unpack with ``**`` in a function call."""
-        if self._wildcard and isinstance(self._kwargs, Context):
+        if self._wildcard and is_context_instance(self._kwargs):
             return lazy_mapping_from_context(self._kwargs)

Review comment:
       @uranusjr 
   
   ```
   airflow/utils/operator_helpers.py:168: error: Argument 1 to
   "lazy_mapping_from_context" has incompatible type "Mapping[str, Any]"; 
expected
   "Context"
                   return lazy_mapping_from_context(self._kwargs)
   ```
   
   That is why I had this as a type: ignore




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to