[ 
https://issues.apache.org/jira/browse/AIRFLOW-6889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042921#comment-17042921
 ] 

ASF GitHub Bot commented on AIRFLOW-6889:
-----------------------------------------

kaxil commented on pull request #7512: [AIRFLOW-6889] Change mutable argument 
value in OpsgenieAlertHook
URL: https://github.com/apache/airflow/pull/7512
 
 
   
 
----------------------------------------------------------------
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:
[email protected]


> Change mutable argument value in OpsgenieAlertHook
> --------------------------------------------------
>
>                 Key: AIRFLOW-6889
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6889
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: contrib
>    Affects Versions: 2.0.0
>            Reporter: Kaxil Naik
>            Assignee: Kaxil Naik
>            Priority: Minor
>
> OpsgenieAlertHook contains the following code which uses a mutable argument 
> value.
> {noformat}
> def execute(self, payload={}):
> {noformat}
> Reference: 
> https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to