mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
fix mypy issues
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user