We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a45198 commit ef4005fCopy full SHA for ef4005f
chipsec/library/register.py
@@ -671,9 +671,12 @@ def filter_by_instance(self, instance: Any) -> 'ObjList':
671
672
def all_has_field(self, field: str) -> bool:
673
return all(inst.has_field(field) for inst in self)
674
-
675
- def filter_with_field(self, field:str) -> 'ObjList':
+
+ def filter_with_field(self, field: str) -> 'ObjList':
676
return ObjList([inst for inst in self if inst.has_field(field)])
677
678
+ def filter_with_fields(self, fields: List[str]) -> 'ObjList':
679
+ return ObjList([inst for inst in self if inst.has_all_fields(fields)])
680
681
def filter_enabled(self) -> 'ObjList':
682
return ObjList([inst for inst in self if inst.is_enabled()])
0 commit comments