Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshod5 committed May 24, 2024
1 parent 0521d22 commit 48b7268
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/api/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def signal_datasets(
self,
limit: Optional[int] = None,
where: Optional[ShotWhereFilter] = None,
) -> List[strawberry.LazyType["Shot", __module__]]:
) -> List[strawberry.LazyType["Shot", __module__]]: # noqa: F821
results = do_where_child_member(self.signal_datasets, where)
if limit is not None:
results = results[:limit]
Expand All @@ -273,7 +273,7 @@ def signal_datasets(
@strawberry.field
def signals(
self, limit: Optional[int] = None, where: Optional[SignalWhereFilter] = None
) -> List[strawberry.LazyType["Signal", __module__]]:
) -> List[strawberry.LazyType["Signal", __module__]]: # noqa: F821
results = do_where_child_member(self.signals, where)
if limit is not None:
results = results[:limit]
Expand Down
2 changes: 1 addition & 1 deletion src/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_sources(
"/json/sources/{name}",
description="Get information about a single signal",
)
def get_signal(db: Session = Depends(get_db), name: str = None) -> models.SourceModel:
def get_single_source(db: Session = Depends(get_db), name: str = None) -> models.SourceModel:
source = crud.get_source(db, name)
source = db.execute(source).one()[0]
return source
Expand Down
3 changes: 1 addition & 2 deletions src/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
Text,
Enum,
)
from sqlalchemy.dialects.postgresql import UUID, JSONB
from sqlalchemy.orm import relationship
from sqlalchemy.dialects.postgresql import JSONB
import datetime
import uuid as uuid_pkg

Expand Down
1 change: 0 additions & 1 deletion src/api/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
__all__ = [
"Params",
"OptionalParams",
"Page",
]

from math import ceil
Expand Down

0 comments on commit 48b7268

Please sign in to comment.