Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 14, 2024
1 parent 844050f commit 87230a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
18 changes: 6 additions & 12 deletions aiohttp_jinja2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,17 @@ class _TemplateWrapper(Protocol):
@overload
def __call__(
self, func: _SimpleTemplateHandler
) -> Callable[[web.Request], Awaitable[web.StreamResponse]]:
...
) -> Callable[[web.Request], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def __call__(
self, func: Callable[[_AbstractView], _TemplateReturnType]
) -> Callable[[_AbstractView], Awaitable[web.StreamResponse]]:
...
) -> Callable[[_AbstractView], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def __call__(
self, func: Callable[[_T, web.Request], _TemplateReturnType]
) -> Callable[[_T, web.Request], Awaitable[web.StreamResponse]]:
...
) -> Callable[[_T, web.Request], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.


def setup(
Expand Down Expand Up @@ -203,20 +200,17 @@ def template(
@overload
def wrapper(
func: _SimpleTemplateHandler,
) -> Callable[[web.Request], Awaitable[web.StreamResponse]]:
...
) -> Callable[[web.Request], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def wrapper(
func: Callable[[_AbstractView], _TemplateReturnType]
) -> Callable[[_AbstractView], Awaitable[web.StreamResponse]]:
...
) -> Callable[[_AbstractView], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def wrapper(
func: Callable[[_T, web.Request], _TemplateReturnType]
) -> Callable[[_T, web.Request], Awaitable[web.StreamResponse]]:
...
) -> Callable[[_T, web.Request], Awaitable[web.StreamResponse]]: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

def wrapper(
func: Callable[..., _TemplateReturnType]
Expand Down
1 change: 1 addition & 0 deletions aiohttp_jinja2/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
useful context functions, see
http://jinja.pocoo.org/docs/dev/api/#jinja2.contextfunction
"""

import warnings
from typing import Dict, Optional, TypedDict, Union

Expand Down

0 comments on commit 87230a1

Please sign in to comment.