Fix RES102 (Remove unnecessary parentheses)

This commit is contained in:
Adam Turner
2023-07-28 07:05:56 +01:00
committed by Adam Turner
parent 064b627953
commit e2ff04eafe
5 changed files with 42 additions and 44 deletions

View File

@@ -1218,7 +1218,7 @@ def test_domain_cpp_build_with_add_function_parentheses_is_True(app, status, war
res = re.search(pattern, text)
if not res:
print(f"Pattern\n\t{pattern}\nnot found in {file}")
raise AssertionError()
raise AssertionError
rolePatterns = [
('', 'Sphinx'),
('', 'Sphinx::version'),
@@ -1259,7 +1259,7 @@ def test_domain_cpp_build_with_add_function_parentheses_is_False(app, status, wa
res = re.search(pattern, text)
if not res:
print(f"Pattern\n\t{pattern}\nnot found in {file}")
raise AssertionError()
raise AssertionError
rolePatterns = [
('', 'Sphinx'),
('', 'Sphinx::version'),