You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the doc you should use BaseHTTPRequestHandler subclassing it and implementing various do_SPAM methods, one for each request method.
But if in this basic snippet
One thing you can do to help Ruff here is add the @typing.override or @typing_extensions.override decorator to your method to indicate to tools that it's overriding an existing method.
BTW: if I add @typing.override I may trick ruff, but now mypy raises an error (because there is no do_SPAM method to override in BaseHTTPRequestHandler)
According to the doc you should use
BaseHTTPRequestHandler
subclassing it and implementing variousdo_SPAM
methods, one for each request method.But if in this basic snippet
ruff
raises the errorI would suggest to add an exception for the various
do_XXX
methods of the subclasses ofBaseHTTPRequestHandler
The text was updated successfully, but these errors were encountered: