Skip to content

Commit 1219f3c

Browse files
committed
run formatters
Signed-off-by: Bradley Reynolds <[email protected]>
1 parent 2d2c8f7 commit 1219f3c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/api/modules/generators.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Literal
66

77
from fastapi import APIRouter
8+
89
# pylint: disable-next=no-name-in-module
910
from pydantic import BaseModel, Field, validator
1011

@@ -44,10 +45,10 @@ class NumbersConfig(BaseModel):
4445
upper_bound: int | None = Field(default=1)
4546
quantity: int | None = Field(gt=0, default=1)
4647

47-
@validator('upper_bound')
48+
@validator("upper_bound")
4849
def upper_bound_must_be_greater_than_lower_bound(cls, v, values, **kwargs):
49-
if 'lower_bound' in values and v < values['lower_bound']:
50-
raise ValueError('upper bound must be greater than lower bound')
50+
if "lower_bound" in values and v < values["lower_bound"]:
51+
raise ValueError("upper bound must be greater than lower bound")
5152
return v
5253

5354

src/api/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import sentry_sdk
66
from fastapi import APIRouter, FastAPI
77
from imsosorry import uwuify
8+
89
# pylint: disable-next=no-name-in-module
910
from pydantic import BaseModel
1011

0 commit comments

Comments
 (0)