Remove unnecessary parentheses around tuples returned from methods (#10889)

This commit is contained in:
Andrew Morgan 2021-09-23 11:59:07 +01:00 committed by GitHub
parent 26f2bfedbf
commit aa2c027792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 33 additions and 32 deletions

View file

@ -1447,7 +1447,7 @@ def read_gc_thresholds(thresholds):
return None
try:
assert len(thresholds) == 3
return (int(thresholds[0]), int(thresholds[1]), int(thresholds[2]))
return int(thresholds[0]), int(thresholds[1]), int(thresholds[2])
except Exception:
raise ConfigError(
"Value of `gc_threshold` must be a list of three integers if set"