Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Dec 13, 2024
1 parent e5eee66 commit 8ddb3f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/stac_auth_proxy/filters/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def __post_init__(self):
self.dependency = self.build()

def build(self):
"""Generate a dependency for rendering a CQL2 filter expression."""

async def dependency(
request: Request, auth_token=Security(self.token_dependency)
) -> Expr:
Expand Down
6 changes: 3 additions & 3 deletions src/stac_auth_proxy/handlers/reverse_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import time
from dataclasses import dataclass
from typing import Annotated, Optional
from typing import Annotated, Callable, Optional

import httpx
from cql2 import Expr
Expand All @@ -23,8 +23,8 @@ class ReverseProxyHandler:

upstream: str
client: httpx.AsyncClient = None
collections_filter: Optional[callable] = None
items_filter: Optional[callable] = None
collections_filter: Optional[Callable] = None
items_filter: Optional[Callable] = None

def __post_init__(self):
"""Initialize the HTTP client."""
Expand Down

0 comments on commit 8ddb3f6

Please sign in to comment.