Skip to content
Snippets Groups Projects

Removed default argument as list everywhere i found it

Merged Martin Högstedt requested to merge 10-ignore_keys-default-argument into main
2 files
+ 69
57
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -81,12 +81,15 @@ class Module:
"""
pass
def get_longest_line_len(self, ignore_keys=[]) -> int:
def get_longest_line_len(self, ignore_keys=None) -> int:
"""
Helper function for pretty_print that returns the length of
the longest line to print for a module.
"""
if ignore_keys == None:
ignore_keys = []
longest_line_len = 0
state = self.get_state()
Loading