Skip to content

Commit

Permalink
Fix flake8-bugbear warning
Browse files Browse the repository at this point in the history
B027 `BaseSpecifier.prereleases` is an empty method in an
     abstract base class, but has no abstract decorator
  • Loading branch information
DimitriPapadopoulos committed Jan 4, 2024
1 parent adc20c4 commit 7ad22ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def prereleases(self) -> Optional[bool]:
"""

@prereleases.setter
@abc.abstractmethod
def prereleases(self, value: bool) -> None:
"""Setter for :attr:`prereleases`.
Expand Down

0 comments on commit 7ad22ab

Please sign in to comment.