From 7ad22abd3ff795b1b4ae618ec9708917a95ec2a9 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 4 Jan 2024 22:51:15 +0100 Subject: [PATCH] Fix flake8-bugbear warning B027 `BaseSpecifier.prereleases` is an empty method in an abstract base class, but has no abstract decorator --- src/packaging/specifiers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packaging/specifiers.py b/src/packaging/specifiers.py index 94448327..fc5228d0 100644 --- a/src/packaging/specifiers.py +++ b/src/packaging/specifiers.py @@ -82,6 +82,7 @@ def prereleases(self) -> Optional[bool]: """ @prereleases.setter + @abc.abstractmethod def prereleases(self, value: bool) -> None: """Setter for :attr:`prereleases`.