summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-26 19:07:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-26 19:07:54 -0500
commit2d628d40d60f967f135a8c21a62a000716c45054 (patch)
treeddeab6c0cb3309d42b4618891104f2570bc4cbbb
parent92fe560a9368a5ac32ad5a2a272913b1b0ebfdd5 (diff)
downloadpython-coveragepy-git-2d628d40d60f967f135a8c21a62a000716c45054.tar.gz
style: remove needless trailing commas
-rw-r--r--coverage/types.py2
-rw-r--r--tests/test_parser.py2
-rw-r--r--tests/test_phystokens.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/coverage/types.py b/coverage/types.py
index 3d21ac9d..b8135d05 100644
--- a/coverage/types.py
+++ b/coverage/types.py
@@ -161,7 +161,7 @@ class TPlugin(Protocol):
class TWarnFn(Protocol):
"""A callable warn() function."""
- def __call__(self, msg: str, slug: Optional[str] = None, once: bool = False,) -> None:
+ def __call__(self, msg: str, slug: Optional[str] = None, once: bool = False) -> None:
...
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 8009ce51..f74420b5 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -533,7 +533,7 @@ def test_ast_dump() -> None:
num_lines = len(source.splitlines())
with warnings.catch_warnings():
# stress_phystoken.tok has deprecation warnings, suppress them.
- warnings.filterwarnings("ignore", message=r".*invalid escape sequence",)
+ warnings.filterwarnings("ignore", message=r".*invalid escape sequence")
ast_root = ast.parse(source)
result: List[str] = []
ast_dump(ast_root, print=result.append)
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py
index 5807f00d..2f1f7307 100644
--- a/tests/test_phystokens.py
+++ b/tests/test_phystokens.py
@@ -103,7 +103,7 @@ class PhysTokensTest(CoverageTest):
# Check the tokenization of the stress-test files.
# And check that those files haven't been incorrectly "fixed".
with warnings.catch_warnings():
- warnings.filterwarnings("ignore", message=r".*invalid escape sequence",)
+ warnings.filterwarnings("ignore", message=r".*invalid escape sequence")
stress = os.path.join(TESTS_DIR, fname)
self.check_file_tokenization(stress)