vipyrsec / dragonfly-mainframe

The mainframe for Dragonfly
https://docs.vipyrsec.com/dragonfly-mainframe/
MIT License
5 stars 1 forks source link

Typehint data dict in send_email #123

Closed Robin5605 closed 1 year ago

Robin5605 commented 1 year ago

Typehint the data dict in the send_email function in mainframe/utils/mailer.py to be dict[str, Any] because this line of code is invalid, according to pyright:

data[recipients_type] =_build_formatted_recipients_list(recipients_list)

We could've just # pyright: ignore here but I thought type-hinting the data variable to be dict[str, Any] was more explicit.