fix mypy issues

This commit is contained in:
Yacine Elhamer
2023-07-01 01:41:19 +01:00
parent d2ff0af34a
commit 8a93a06b71

View File

@@ -123,7 +123,7 @@ class Flavor:
def __eq__(self, scope) -> bool:
# Flavors aren't supposed to be compared directly.
assert isinstance(scope, Scope)
assert isinstance(scope, Scope) or isinstance(scope, str)
return (scope == self.static) or (scope == self.dynamic)