Skip to content

Commit 6019aa2

Browse files
committed
fix: mark uncovered property branch in _make_key with pragma: no cover
This branch was already uncovered on develop (property.fget is never None in practice). The pragma prevents codecov from flagging the expanded lines as new missing coverage.
1 parent 2e9bc86 commit 6019aa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

statemachine/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def _make_key(method):
2020
method = method.func if isinstance(method, partial) else method
21-
if isinstance(method, property):
21+
if isinstance(method, property): # pragma: no cover
2222
assert method.fget is not None
2323
method = method.fget
2424
if isinstance(method, MethodType):

0 commit comments

Comments
 (0)