Skip to content

Commit

Permalink
Use Optional[...] for cpe_match_cache type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Jan 6, 2025
1 parent ff97772 commit 27656e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontos/nvd/models/cpe_match_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CPEMatchString(Model):

@classmethod
def from_dict_with_cache(
cls, data: Dict[str, Any], cpe_match_cache: Dict[str, CPEMatch] | None
cls, data: Dict[str, Any], cpe_match_cache: Optional[Dict[str, CPEMatch]]
):
"""
Create a CPEMatchString model from a dict, reusing
Expand Down

0 comments on commit 27656e9

Please sign in to comment.