git-machete icon indicating copy to clipboard operation
git-machete copied to clipboard

Use `defaultdict` where applicable

Open mkondratek opened this issue 4 years ago • 0 comments

Most likely for the following:

  • down_branches: Dict[str, List[str]] = {} # TODO (#): default dict with []
  • up_branch: Dict[str, str] = {} # TODO (#): default dict with None
  • commit_sha_by_revision_cached: Optional[Dict[str, Optional[str]]] = None # TODO (#): default dict with None
  • committer_unix_timestamp_by_revision_cached: Optional[Dict[str, int]] = None # TODO (#): default dict with 0

mkondratek avatar Feb 12 '21 10:02 mkondratek