From: Matthew Fernandez Date: Sat, 3 Jul 2021 02:42:14 +0000 (-0700) Subject: remove unnecessary parens on Python classes X-Git-Tag: 2.48.0~9^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62d097fdc2260c7beb361f3224a5e115ff2314ec;p=graphviz remove unnecessary parens on Python classes New-style Python 3 classes do not need parens if they are not inheriting from any other class. --- diff --git a/rtest/generate_graph.py b/rtest/generate_graph.py index a4c74defc..32f228cb9 100755 --- a/rtest/generate_graph.py +++ b/rtest/generate_graph.py @@ -38,7 +38,7 @@ import sys import tempfile from typing import List, Optional -class Graph(): +class Graph: """generative representation of a large graph""" def __init__(self, directed: bool, branching: int): @@ -85,7 +85,7 @@ class Graph(): out.write(f' n{src} {"->" if self.directed else "--"} n{dst}\n') out.write("}") -class Result(): +class Result: TIMEOUT = 124 def __init__(self, status: int, runtime: int, rss: Optional[int] = 0):