Skip to content

Commit 8ddb3f6

Browse files
committed
Lint fixes
1 parent e5eee66 commit 8ddb3f6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/stac_auth_proxy/filters/template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def __post_init__(self):
2727
self.dependency = self.build()
2828

2929
def build(self):
30+
"""Generate a dependency for rendering a CQL2 filter expression."""
31+
3032
async def dependency(
3133
request: Request, auth_token=Security(self.token_dependency)
3234
) -> Expr:

src/stac_auth_proxy/handlers/reverse_proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
import time
55
from dataclasses import dataclass
6-
from typing import Annotated, Optional
6+
from typing import Annotated, Callable, Optional
77

88
import httpx
99
from cql2 import Expr
@@ -23,8 +23,8 @@ class ReverseProxyHandler:
2323

2424
upstream: str
2525
client: httpx.AsyncClient = None
26-
collections_filter: Optional[callable] = None
27-
items_filter: Optional[callable] = None
26+
collections_filter: Optional[Callable] = None
27+
items_filter: Optional[Callable] = None
2828

2929
def __post_init__(self):
3030
"""Initialize the HTTP client."""

0 commit comments

Comments
 (0)