chore: improve coverage, remove unused line

This commit is contained in:
reton2 2024-05-01 12:07:31 +01:00
parent 6421bc12b2
commit c6f95103c2
1 changed files with 1 additions and 3 deletions

View File

@ -32,10 +32,8 @@ def protect(endpoint: Callable[..., Any]):
class CustomAPIRoute(APIRoute):
def __init__(
self, path: str, endpoint: Callable[..., Any], dependencies=None, **kwargs
self, path: str, endpoint: Callable[..., Any], dependencies, **kwargs
) -> None:
if dependencies is None:
dependencies = []
if isinstance(endpoint, EndpointWrapper) and endpoint.protected:
dependencies.append(Depends(dummy_secruity_check))
super().__init__(path, endpoint, dependencies=dependencies, **kwargs)