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



##########
File path: airflow/models/baseoperator.py
##########
@@ -1634,7 +1635,7 @@ def map(self, **kwargs) -> "MappedOperator":
 
 
 def _validate_kwarg_names_for_mapping(cls: Type[BaseOperator], func_name: str, 
value: Dict[str, Any]):
-    if isinstance(str, cls):
+    if isinstance(cls, str):

Review comment:
       Yes, it should be -- I corrected that type annotation on the 
MappedOperator but not here.




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