Skip to content

Commit

Permalink
ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 31, 2024
1 parent a8d8e49 commit 3be3081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions src/traffic/data/eurocontrol/ddr/allft.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ class AllFT(DataFrameMixin):
__slots__ = ("data",)

@classmethod
def from_allft(
cls, filename: Union[str, Path, BytesIO]
) -> Self:
def from_allft(cls, filename: Union[str, Path, BytesIO]) -> Self:
allft = (
pd.read_csv(
filename,
Expand Down Expand Up @@ -203,9 +201,7 @@ def from_allft(
return cls(allft.sort_values("EOBT"))

@classmethod
def from_allft_7z(
cls, filename: Union[str, Path]
) -> Self:
def from_allft_7z(cls, filename: Union[str, Path]) -> Self:
with SevenZipFile(filename, "rb") as fh:
b = BytesIO()
for file in fh.readall():
Expand Down
4 changes: 1 addition & 3 deletions src/traffic/data/eurocontrol/ddr/navpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def data(self) -> pd.DataFrame:
raise RuntimeError(msg)

@classmethod
def from_file(
cls, filename: Union[Path, str], **kwargs: Any
) -> Self:
def from_file(cls, filename: Union[Path, str], **kwargs: Any) -> Self:
if filename == "":
return cls(None)

Expand Down

0 comments on commit 3be3081

Please sign in to comment.