From 41428172e9ed88e5e19b871ee94ba8ddee15ca8f Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Thu, 12 Oct 2023 08:21:05 -0300 Subject: [PATCH] add no cover to just-in-case lines --- src/codemodder/codemods/utils_mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codemodder/codemods/utils_mixin.py b/src/codemodder/codemods/utils_mixin.py index 5555f26b9..2bd2107d2 100644 --- a/src/codemodder/codemods/utils_mixin.py +++ b/src/codemodder/codemods/utils_mixin.py @@ -78,7 +78,7 @@ def find_used_names_in_module(self): names = [] scope = self.find_global_scope() if scope is None: - return [] + return [] # pragma: no cover nodes = [x.node for x in scope.assignments] for other_nodes in nodes: @@ -93,7 +93,7 @@ def find_global_scope(self): for scope in scopes: if isinstance(scope, GlobalScope): return scope - return None + return None # pragma: no cover def find_single_assignment( self,