You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

retain_counts.py 309B

12345678910
  1. from typing import List
  2. from million.model.message import Message
  3. import million.analyze.message_evaluation as msg_val
  4. def retain_counts(messages : List[Message])-> List[Message]:
  5. """
  6. Retain only the messages that have a counted value
  7. """
  8. return [msg for msg in messages if msg_val.get(msg)]