features: cleanup mypy checking

This commit is contained in:
Willi Ballenthin
2022-12-14 21:22:52 +01:00
parent 613c185428
commit aee0ec8016
+2 -3
View File
@@ -233,9 +233,8 @@ class Substring(String):
return Result(False, _MatchedSubstring(self, {}), [])
def __str__(self):
v = self.value
assert isinstance(v, str)
return "substring(%s)" % v
assert isinstance(self.value, str)
return "substring(%s)" % self.value
class _MatchedSubstring(Substring):