diff --git a/poetry_version_plugin/plugin.py b/poetry_version_plugin/plugin.py index 5dfdb0e..cd88fce 100644 --- a/poetry_version_plugin/plugin.py +++ b/poetry_version_plugin/plugin.py @@ -61,7 +61,10 @@ def activate(self, poetry: Poetry, io: IO) -> None: version = value_node.value elif isinstance(value_node, ast.Str): version = value_node.s - else: + else: # pragma: nocover + # This is actually covered by tests, but can't be + # reported by Coverage + # Ref: https://github.com/nedbat/coveragepy/issues/198 continue io.write_line( "Setting package dynamic version to __version__ "