From 3be30816580f5d9affc1bf0f7822a739bb4bad78 Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Thu, 31 Oct 2024 16:08:34 +0100 Subject: [PATCH] ruff format --- src/traffic/data/eurocontrol/ddr/allft.py | 8 ++------ src/traffic/data/eurocontrol/ddr/navpoints.py | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/traffic/data/eurocontrol/ddr/allft.py b/src/traffic/data/eurocontrol/ddr/allft.py index 097af944..109d0fab 100644 --- a/src/traffic/data/eurocontrol/ddr/allft.py +++ b/src/traffic/data/eurocontrol/ddr/allft.py @@ -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, @@ -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(): diff --git a/src/traffic/data/eurocontrol/ddr/navpoints.py b/src/traffic/data/eurocontrol/ddr/navpoints.py index 2d0e2d6b..6ce8f2c1 100644 --- a/src/traffic/data/eurocontrol/ddr/navpoints.py +++ b/src/traffic/data/eurocontrol/ddr/navpoints.py @@ -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)