Skip to content

Commit 3e1dff2

Browse files
committed
Add coveragerc file to exclude typing.overload implementations
1 parent 0910545 commit 3e1dff2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.coveragerc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[run]
2+
branch=True
3+
source=src/outcome
4+
5+
[report]
6+
precision = 1
7+
exclude_lines =
8+
pragma: no cover
9+
abc.abstractmethod
10+
if TYPE_CHECKING:
11+
if _t.TYPE_CHECKING:
12+
if t.TYPE_CHECKING:
13+
@overload
14+
class .*\bProtocol\b.*\):
15+
16+
partial_branches =
17+
pragma: no branch
18+
if not TYPE_CHECKING:
19+
if not _t.TYPE_CHECKING:
20+
if not t.TYPE_CHECKING:
21+
if .* or not TYPE_CHECKING:
22+
if .* or not _t.TYPE_CHECKING:
23+
if .* or not t.TYPE_CHECKING:

0 commit comments

Comments
 (0)