Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 02232ca

Browse files
committed
Adding pragma no branch
1 parent 2059f21 commit 02232ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mlem/utils/module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def get_module_version(mod: ModuleType) -> Optional[str]:
261261
pass
262262

263263
# if there's a package-file, try to get it from there
264-
if mod.__file__ is not None:
264+
if mod.__file__ is not None: # pragma: no branch
265265
for name in os.listdir(os.path.dirname(mod.__file__)):
266266
m = re.match(re.escape(mod.__name__) + "-(.+)\\.dist-info", name)
267267
if m:

0 commit comments

Comments
 (0)