Skip to content

Commit 1931393

Browse files
authored
Ignore typing overloads when counting coverage (#2370)
1 parent 8b14a02 commit 1931393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ exclude_lines = [
147147
"^if __name__ == ['\"]__main__['\"]:$",
148148
"^\\s*\\.\\.\\.$",
149149
"^\\s*@abc.abstractmethod$",
150+
"^\\s*@typing.overload$",
150151
"^\\s*if typing.TYPE_CHECKING:$",
151152
# Whatever is in inside `if not typing.TYPE_CHECKING:` is expected to be tested, but the branch will always run, making
152153
# coverage think that its only partial

0 commit comments

Comments
 (0)