diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-05 20:10:24 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-05 20:10:24 -0500 |
commit | 78444f4c06df6a634fa67dd99ee7c07b6b633d9e (patch) | |
tree | 4651930bc1ec5449e408c347b2d660522f8ac9e4 /coverage/results.py | |
parent | d4339ee90c3146f370d572cbb1b9ab9907daafad (diff) | |
download | python-coveragepy-git-78444f4c06df6a634fa67dd99ee7c07b6b633d9e.tar.gz |
style: use good style for annotated defaults parameters
Diffstat (limited to 'coverage/results.py')
-rw-r--r-- | coverage/results.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/coverage/results.py b/coverage/results.py index 4990d435..2731700e 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -67,7 +67,7 @@ class Analysis: n_missing_branches=n_missing_branches, ) - def missing_formatted(self, branches: bool=False) -> str: + def missing_formatted(self, branches: bool = False) -> str: """The missing line numbers, formatted nicely. Returns a string like "1-2, 5-11, 13-14". @@ -188,14 +188,14 @@ class Numbers(AutoReprMixin): def __init__( self, - precision: int=0, - n_files: int=0, - n_statements: int=0, - n_excluded: int=0, - n_missing: int=0, - n_branches: int=0, - n_partial_branches: int=0, - n_missing_branches: int=0, + precision: int = 0, + n_files: int = 0, + n_statements: int = 0, + n_excluded: int = 0, + n_missing: int = 0, + n_branches: int = 0, + n_partial_branches: int = 0, + n_missing_branches: int = 0, ) -> None: assert 0 <= precision < 10 self._precision = precision @@ -329,7 +329,7 @@ def _line_ranges( def format_lines( statements: Iterable[TLineNo], lines: Iterable[TLineNo], - arcs: Optional[Iterable[Tuple[TLineNo, List[TLineNo]]]]=None, + arcs: Optional[Iterable[Tuple[TLineNo, List[TLineNo]]]] = None, ) -> str: """Nicely format a list of line numbers. |