-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid using default mutable parameters
Using mutable default arguments is a common Python problem, see e.g. https://docs.python-guide.org/writing/gotchas/@mutable-default-arguments In this specific case the default argument even tries to setup some infrastructure settings at import time, which can potentially fail.
- Loading branch information
Martin Lambertsen
authored
Jul 9, 2024
1 parent
a19e3b1
commit 9fa773a
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters