diff --git a/slither/printers/inheritance/inheritance_graph.py b/slither/printers/inheritance/inheritance_graph.py index 396680bb6..f0da17c59 100644 --- a/slither/printers/inheritance/inheritance_graph.py +++ b/slither/printers/inheritance/inheritance_graph.py @@ -189,7 +189,7 @@ class PrinterInheritanceGraph(AbstractPrinter): Args: filename(string) """ - if filename == "" or filename == ".": + if filename in ("", "."): filename = "inheritance-graph.dot" if not filename.endswith(".dot"): filename += ".inheritance-graph.dot"