uranusjr commented on code in PR #25173:
URL: https://github.com/apache/airflow/pull/25173#discussion_r929720375
##########
airflow/providers/salesforce/operators/bulk.py:
##########
@@ -47,7 +47,7 @@ class SalesforceBulkOperator(BaseOperator):
def __init__(
self,
*,
- operation: Literal[available_operations],
+ operation: Literal['insert', 'update', 'upsert', 'delete',
'hard_delete'],
Review Comment:
It’s a syntax limitation, Python does not allow using `*` in brackets. The
previous `Literal[available_operations]` is valid Python [but PEP 586
considered this out of
scope](https://peps.python.org/pep-0586/#rejected-or-out-of-scope-ideas).
--
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]