Skip to content

Commit 63be58e

Browse files
mgr/smb: filter out python version blocks from coverage
Signed-off-by: John Mulligan <[email protected]>
1 parent c6b0377 commit 63be58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybind/mgr/smb/proto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# this uses a version check as opposed to a try/except because this
2020
# form makes mypy happy and try/except doesn't.
21-
if sys.version_info >= (3, 8):
21+
if sys.version_info >= (3, 8): # pragma: no cover
2222
from typing import Protocol
2323
elif TYPE_CHECKING: # pragma: no cover
2424
# typing_extensions will not be available for the real mgr server
@@ -29,7 +29,7 @@ class Protocol: # type: ignore
2929
pass
3030

3131

32-
if sys.version_info >= (3, 11):
32+
if sys.version_info >= (3, 11): # pragma: no cover
3333
from typing import Self
3434
elif TYPE_CHECKING: # pragma: no cover
3535
# typing_extensions will not be available for the real mgr server

0 commit comments

Comments
 (0)