Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23ad769

Browse files
committed
fix typos
Found by Claude
1 parent 0829a65 commit 23ad769

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

coverage/cmdline.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Opts:
102102
"""
103103
),
104104
)
105-
datafle_input = optparse.make_option(
105+
datafile_input = optparse.make_option(
106106
"",
107107
"--data-file",
108108
action="store",
@@ -532,7 +532,7 @@ def get_prog_name(self) -> str:
532532
"annotate",
533533
[
534534
Opts.directory,
535-
Opts.datafle_input,
535+
Opts.datafile_input,
536536
Opts.ignore_errors,
537537
Opts.include,
538538
Opts.omit,
@@ -603,7 +603,7 @@ def get_prog_name(self) -> str:
603603
[
604604
Opts.contexts,
605605
Opts.directory,
606-
Opts.datafle_input,
606+
Opts.datafile_input,
607607
Opts.fail_under,
608608
Opts.ignore_errors,
609609
Opts.include,
@@ -630,7 +630,7 @@ def get_prog_name(self) -> str:
630630
"json",
631631
[
632632
Opts.contexts,
633-
Opts.datafle_input,
633+
Opts.datafile_input,
634634
Opts.fail_under,
635635
Opts.ignore_errors,
636636
Opts.include,
@@ -647,7 +647,7 @@ def get_prog_name(self) -> str:
647647
"lcov": CmdOptionParser(
648648
"lcov",
649649
[
650-
Opts.datafle_input,
650+
Opts.datafile_input,
651651
Opts.fail_under,
652652
Opts.ignore_errors,
653653
Opts.include,
@@ -663,7 +663,7 @@ def get_prog_name(self) -> str:
663663
"report",
664664
[
665665
Opts.contexts,
666-
Opts.datafle_input,
666+
Opts.datafile_input,
667667
Opts.fail_under,
668668
Opts.format,
669669
Opts.ignore_errors,
@@ -704,7 +704,7 @@ def get_prog_name(self) -> str:
704704
"xml": CmdOptionParser(
705705
"xml",
706706
[
707-
Opts.datafle_input,
707+
Opts.datafile_input,
708708
Opts.fail_under,
709709
Opts.ignore_errors,
710710
Opts.include,

coverage/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def combine(
895895
.. versionadded:: 4.3
896896
The `strict` parameter.
897897
898-
.. versionadded: 5.5
898+
.. versionadded:: 5.5
899899
The `keep` parameter.
900900
"""
901901
self._init()

coverage/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def translate_arcs(self, arcs: Iterable[TArc]) -> set[TArc]:
511511
return set(arcs)
512512

513513
def exit_counts(self) -> dict[TLineNo, int]:
514-
"""Get a count of exits from that each line.
514+
"""Get a count of exits from each line.
515515
516516
To determine which lines are branches, coverage.py looks for lines that
517517
have more than one exit. This function creates a dict mapping each

coverage/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def multiline_map(self) -> dict[TLineNo, TLineNo]:
201201
return self.parser.multiline_map
202202

203203
def excluded_lines(self) -> set[TLineNo]:
204-
"""Return the line numbers of statements in the file."""
204+
"""Return the line numbers of excluded statements in the file."""
205205
return self.parser.excluded
206206

207207
def translate_lines(self, lines: Iterable[TLineNo]) -> set[TLineNo]:

0 commit comments

Comments
 (0)