Commit 2c282da
David Miguel Susano Pinto
microscope.device_server.device: default conf to None.
Using a mutable object such as {} as default can lead to surprises
behaviour (see pylint notes for dangerous-default-value / W0102 at
https://pylint.pycqa.org/en/stable/user_guide/messages/warning/dangerous-default-value.html ).
Indeed, this triggered the issues #211, #212, and #274. So just make
the default None and convert to an empty dict.1 parent 38a1974 commit 2c282da
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
0 commit comments