Skip to content

Commit

Permalink
Run ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Mar 28, 2024
1 parent cc62d9e commit f2c8f04
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions postcode_lookup/dc_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
from response_builder.v1.sandbox import SANDBOX_BASE_URL, SANDBOX_POSTCODES


class InvalidPostcodeException(Exception):
...
class InvalidPostcodeException(Exception): ...


class InvalidUPRNException(Exception):
...
class InvalidUPRNException(Exception): ...


def valid_postcode(postcode: str):
Expand Down Expand Up @@ -70,12 +68,10 @@ def _get(self, endpoint, params=None):
return req

@abstractmethod
def get_postcode(self, postcode: str) -> dict:
...
def get_postcode(self, postcode: str) -> dict: ...

@abstractmethod
def get_uprn(self, uprn: str) -> dict:
...
def get_uprn(self, uprn: str) -> dict: ...


class LiveAPIBackend(BaseAPIClient):
Expand Down

0 comments on commit f2c8f04

Please sign in to comment.