Mutable {} is used in functions everywhere in the project, which can lead to leaks if these functions are not called properly.
refer - https://florimond.dev/blog/articles/2018/08/python-mutable-defaults-are-the-source-of-all-evil/
def capture(self, payment_id, amount, data={}, **kwargs):
def refund(self, payment_id, amount, data={}, **kwargs): # pragma: no cover
Mutable
{}is used in functions everywhere in the project, which can lead to leaks if these functions are not called properly.refer - https://florimond.dev/blog/articles/2018/08/python-mutable-defaults-are-the-source-of-all-evil/