-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use metadata type, not dict, in main #1411
Comments
@williballenthin Can you assign me this issue. Would like to work on it. |
@williballenthin , Regarding updating meta of type(Metadata) I think it would be better to create |
If we are using meta as type Metadata then Lines 1232 to 1239 in af15008
Here in capa.render.json/verbose/vverbose/default.render meta is passed to ResultDocument.from_capa(meta) where it is processed as Metadata.from_capa(meta) thus meta should be of type dict. I guess some changes will also be required in render too.
|
Yup, that sounds great. |
yes, i think thats right. we should prefer to use the |
closed by #1502, thanks @Aayush-Goel-04! |
Originally posted by @williballenthin in #1396 (comment)
specifically, routines like
collect_metadata
return a Dict rather than a specific type:capa/capa/main.py
Lines 727 to 777 in af15008
we should maybe just return
result_document.Metadata
here and use it throughout the code.this will be a breaking change, so it should be included in v6.
The text was updated successfully, but these errors were encountered: