mirror of
https://github.com/mandiant/capa.git
synced 2026-07-11 22:51:52 -07:00
Fix requested changes
This commit is contained in:
@@ -595,6 +595,7 @@ def feature_from_pb2(f: capa_pb2.FeatureNode) -> frzf.Feature:
|
||||
elif type_ == "import_":
|
||||
ff = f.import_
|
||||
return frzf.ImportFeature(import_=ff.import_, description=ff.description or None) # type: ignore
|
||||
# Mypy is unable to recognize `import_` as an argument
|
||||
elif type_ == "section":
|
||||
ff = f.section
|
||||
return frzf.SectionFeature(section=ff.section, description=ff.description or None)
|
||||
|
||||
+120
-120
File diff suppressed because one or more lines are too long
+118
-771
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user