Skip to content
Snippets Groups Projects
Commit 3aaf10c7 authored by Martin Högstedt's avatar Martin Högstedt
Browse files

fixed the potential bug

parent a64c0b80
Branches
Tags
1 merge request!18Removed default argument as list everywhere i found it
Pipeline #131658 passed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment