Skip to content

Commit b8523ae

Browse files
committed
chore: fix some pylance hints
1 parent f0dbd63 commit b8523ae

File tree

1 file changed

+1
-3
lines changed
  • robotcode/language_server/robotframework/diagnostics

1 file changed

+1
-3
lines changed

robotcode/language_server/robotframework/diagnostics/entities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,9 @@ class VariableDefinition(SourceEntity):
179179
value: Any = field(default=None, compare=False)
180180
value_is_native: bool = field(default=False, compare=False)
181181

182-
__matcher: Optional[VariableMatcher] = None
183-
184182
@property
185183
def matcher(self) -> VariableMatcher:
186-
if self.__matcher is None:
184+
if not hasattr(self, "__matcher"):
187185
self.__matcher = VariableMatcher(self.name)
188186
return self.__matcher
189187

0 commit comments

Comments
 (0)