We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@overload
Running flake8 on the following code with flake8-bugbear 22.10.25:
import abc from typing import IO, Literal, overload class Opener(abc.ABC): @overload def open(self, mode: Literal["r"] = "r") -> IO[str]: ... @overload def open(self, mode: Literal["rb"] = "rb") -> IO[bytes]: ... @abc.abstractmethod def open(self, mode: Literal["r", "rb"] = "r") -> IO: ...
results in reports of B027 violations for the @overload-decorated open() methods, which is wrong.
open()
The text was updated successfully, but these errors were encountered:
Yeah @overload should definitely be ignored as well. @Zac-HD
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Running flake8 on the following code with flake8-bugbear 22.10.25:
results in reports of B027 violations for the
@overload
-decoratedopen()
methods, which is wrong.The text was updated successfully, but these errors were encountered: