general: defaultdict fix

(addresses #2030)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
1: D100 Docstring missing
46:1: F401 'create_approx_func' imported but unused
81:1: E302 expected 2 blank lines, found 1
81: D103 Docstring missing
95: D103 Docstring missing
116: D103 Docstring missing
127:49: E228 missing whitespace around modulo operator
144:1: E302 expected 2 blank lines, found 1
144: D103 Docstring missing
172:1: E302 expected 2 blank lines, found 1
192:1: E302 expected 2 blank lines, found 1
192: D103 Docstring missing
197:60: E231 missing whitespace after ','
197:78: E231 missing whitespace after ','
200:5: E303 too many blank lines (2)
202:99: E202 whitespace before ')'
202:58: E231 missing whitespace after ','
204:1: E302 expected 2 blank lines, found 1
204: D103 Docstring missing
207:5: E301 expected 1 blank line, found 0
232:18: E231 missing whitespace after ','
232:20: E231 missing whitespace after ','
232:25: E231 missing whitespace after ','
233:18: E231 missing whitespace after ','
233:23: E231 missing whitespace after ','
234:18: E231 missing whitespace after ','
234:23: E231 missing whitespace after ','
235:18: E231 missing whitespace after ','
236:18: E231 missing whitespace after ','
236:24: E231 missing whitespace after ','
236:29: E231 missing whitespace after ','
237:18: E231 missing whitespace after ','
238:22: E251 unexpected spaces around keyword / parameter equals
238:24: E251 unexpected spaces around keyword / parameter equals
238:33: E251 unexpected spaces around keyword / parameter equals
238:35: E251 unexpected spaces around keyword / parameter equals
239:22: E251 unexpected spaces around keyword / parameter equals
239:24: E251 unexpected spaces around keyword / parameter equals
239:33: E251 unexpected spaces around keyword / parameter equals
239:35: E251 unexpected spaces around keyword / parameter equals
240:61: E231 missing whitespace after ','
250:5: E303 too many blank lines (2)
255:39: E203 whitespace before ':'
255:60: E203 whitespace before ':'
255:66: E231 missing whitespace after ','
255:69: E231 missing whitespace after ','
255:72: E231 missing whitespace after ','
255:75: E231 missing whitespace after ','
255:78: E231 missing whitespace after ','
256:37: E203 whitespace before ':'
256:43: E231 missing whitespace after ','
256:46: E231 missing whitespace after ','
256:49: E231 missing whitespace after ','
256:52: E231 missing whitespace after ','
256:55: E231 missing whitespace after ','
259:5: E303 too many blank lines (2)
265:18: E231 missing whitespace after ','
269:10: E231 missing whitespace after ','
271:17: E228 missing whitespace around modulo operator
271:25: E225 missing whitespace around operator
274:32: E231 missing whitespace after ','
276:41: E225 missing whitespace around operator
297:123: E128 continuation line under-indented for visual indent
301:119: E225 missing whitespace around operator
325:17: E303 too many blank lines (2)
341:5: E303 too many blank lines (2)
342:24: E231 missing whitespace after ','
343:31: E231 missing whitespace after ','
344:34: E231 missing whitespace after ':'
344:42: E231 missing whitespace after ','
344:116: E231 missing whitespace after ':'
347:1: E302 expected 2 blank lines, found 1
347: D103 Docstring missing
357: D103 Docstring missing
362: D103 Docstring missing
375: D103 Docstring missing