Skip to content

Commit b67bafc

Browse files
committed
chore: run formatter
1 parent 36706c5 commit b67bafc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tibber/networking/query_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A class for generating GraphQL queries to send to the Tibber API"""
2+
23
from typing import Literal
34

45

@@ -318,7 +319,6 @@ def price_info_query(cls, resolution: Literal["HOURLY", "QUARTER_HOURLY"]):
318319
}
319320
}
320321

321-
322322
@classmethod
323323
def range_query(
324324
cls, resolution: str, first: int, last: int, before: str, after: str

tibber/types/subscription.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
"""A class representing the Subscription type from the GraphQL Tibber API."""
4-
from typing import TYPE_CHECKING, Optional, Literal
4+
from typing import TYPE_CHECKING, Literal, Optional
55

66
from tibber.networking.query_builder import QueryBuilder
77
from tibber.types.legal_entity import LegalEntity
@@ -50,9 +50,10 @@ def price_info(self) -> PriceInfo:
5050
"""Price information related to the subscription"""
5151
return PriceInfo(self.cache.get("priceInfo"), self.tibber_client)
5252

53-
def fetch_price_info(self,
53+
def fetch_price_info(
54+
self,
5455
resolution: Literal["HOURLY", "QUARTER_HOURLY"],
55-
home_id: Optional[str] = None
56+
home_id: Optional[str] = None,
5657
) -> PriceInfo:
5758
price_info_query_dict = QueryBuilder.price_info_query(resolution)
5859

0 commit comments

Comments
 (0)