Some extra return type added.

This commit is contained in:
Heisenberg 2024-06-09 19:12:51 -04:00
parent c7da8c2aa3
commit 8a13137e81
8 changed files with 11 additions and 11 deletions

View file

@ -111,7 +111,7 @@ def limit_loader(request, monkeypatch):
return
class LimitedLoader:
def __init__(self, loader):
def __init__(self, loader) -> None:
self.loader = loader
def __getattr__(self, name):

View file

@ -156,7 +156,7 @@ def test_app_ctx_globals_methods(app, app_ctx):
def test_custom_app_ctx_globals_class(app):
class CustomRequestGlobals:
def __init__(self):
def __init__(self) -> None:
self.spam = "eggs"
app.app_ctx_globals_class = CustomRequestGlobals

View file

@ -266,7 +266,7 @@ def test_session_path(app, client):
def test_session_using_application_root(app, client):
class PrefixPathMiddleware:
def __init__(self, app, prefix):
def __init__(self, app, prefix) -> None:
self.app = app
self.prefix = prefix
@ -1781,7 +1781,7 @@ def test_multi_route_rules(app, client):
def test_multi_route_class_views(app, client):
class View:
def __init__(self, app):
def __init__(self, app) -> None:
app.add_url_rule("/", "index", self.index)
app.add_url_rule("/<test>/", "index", self.index)

View file

@ -15,7 +15,7 @@ class FakePath:
See: https://www.python.org/dev/peps/pep-0519/
"""
def __init__(self, path):
def __init__(self, path) -> None:
self.path = path
def __fspath__(self):
@ -23,7 +23,7 @@ class FakePath:
class PyBytesIO:
def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs) -> None:
self._io = io.BytesIO(*args, **kwargs)
def __getattr__(self, name):
@ -265,7 +265,7 @@ class TestStreaming:
called = []
class Wrapper:
def __init__(self, gen):
def __init__(self, gen) -> None:
self._gen = gen
def __iter__(self):