Skip to content

Commit

Permalink
Add type annotation to default_factory in constraints field
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy committed Jun 15, 2024
1 parent 14ac728 commit 8838f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pip_manage/_pip_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class _OutdatedPackage:
version: str
latest_version: str
latest_filetype: str
constraints: set[str] = dataclasses.field(default_factory=set)
constraints: set[str] = dataclasses.field(default_factory=set[str])

@property
def constraints_display(self) -> str:
Expand Down

0 comments on commit 8838f22

Please sign in to comment.