Skip to content

Commit 621fb12

Browse files
committed
🔧 Reformat (codebase): Fix TypeVar issue on code quality
1 parent 7b217d5 commit 621fb12

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

‎pipeline/models/base/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
A module for base in the pipeline-models-base package.
33
"""
44

5+
from typing import TypeVar
6+
57
from sqlalchemy.orm import DeclarativeBase
68

9+
from pipeline.models.weather import Weather
10+
711

812
class Base(DeclarativeBase):
913
pass
14+
15+
16+
U = TypeVar("U", bound="Weather")

‎pipeline/models/base/base_with_id.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22
A module for base with id in the pipeline.models.base package.
33
"""
44

5-
from typing import TypeVar
6-
75
from sqlalchemy import Connection
86
from sqlalchemy.dialects.postgresql import INTEGER
97
from sqlalchemy.event import listens_for
108
from sqlalchemy.orm import Mapped, Mapper, mapped_column
119

1210
from pipeline.db.session import fetch_current_user
13-
from pipeline.models.base.base import Base
14-
15-
U = TypeVar("U", bound="Weather") # type: ignore
11+
from pipeline.models.base.base import Base, U
1612

1713

1814
class BaseWithID(Base):

‎poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ starlette = "^0.37.2"
8383
requests = "^2.32.3"
8484
types-requests = "^2.32.0.20240602"
8585
urllib3 = "^2.2.1"
86+
jinja2 = "^3.1.4"
8687

8788

8889
[build-system]

0 commit comments

Comments
 (0)