Skip to content

Commit

Permalink
moar lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Nov 26, 2024
1 parent defaaf0 commit c38f6d4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions examples/python/air_traffic_data/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--[metadata]
title = "Air Traffic Data"
tags = ["2d", "3d", "map", "crs"]
title = "Air traffic data"
tags = ["2D", "3D", "map", "crs"]
description = "Display aircraft traffic data"
-->

Expand Down
18 changes: 9 additions & 9 deletions examples/python/air_traffic_data/air_traffic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def download_with_progress(url: str, what: str) -> io.BytesIO:
resp = requests.get(url, stream=True)
total_size = int(resp.headers.get("content-length", 0))
with tqdm(
desc=f"Downloading {what}…",
total=total_size,
unit="iB",
unit_scale=True,
unit_divisor=1024,
desc=f"Downloading {what}…",
total=total_size,
unit="iB",
unit_scale=True,
unit_divisor=1024,
) as progress:
download_file = io.BytesIO()
for data in resp.iter_content(chunk_size):
Expand All @@ -73,7 +73,7 @@ def shapely_geom_to_numpy(geom: shapely.Geometry) -> list[npt.NDArray[np.float64


def log_region_boundaries_for_country(
country_code: str, level: int, color: tuple[float, float, float], crs: CRS
country_code: str, level: int, color: tuple[float, float, float], crs: CRS
) -> None:
"""Log some boundaries for the given country and level."""

Expand Down Expand Up @@ -241,9 +241,9 @@ def process_measurement(self, measurement: Measurement) -> None:
entity_path = f"aircraft/{measurement.icao_id}"

if (
measurement.latitude is not None
and measurement.longitude is not None
and measurement.barometric_altitude is not None
measurement.latitude is not None
and measurement.longitude is not None
and measurement.barometric_altitude is not None
):
rr.log(
entity_path,
Expand Down
12 changes: 6 additions & 6 deletions rerun_py/rerun_sdk/rerun/_send_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pyarrow as pa
import rerun_bindings as bindings

from ._baseclasses import Archetype, ComponentBatchMixin, ComponentColumn, ComponentBatchLike
from ._baseclasses import Archetype, ComponentBatchLike, ComponentBatchMixin, ComponentColumn
from ._log import IndicatorComponentBatch
from .any_value import AnyBatchValue
from .error_utils import catch_and_log_exceptions
Expand Down Expand Up @@ -119,11 +119,11 @@ def as_arrow_array(self) -> pa.Array:

@catch_and_log_exceptions()
def send_columns(
entity_path: str,
times: Iterable[TimeColumnLike],
components: Iterable[Union[ComponentBatchLike]],
recording: RecordingStream | None = None,
strict: bool | None = None,
entity_path: str,
times: Iterable[TimeColumnLike],
components: Iterable[Union[ComponentBatchLike]],
recording: RecordingStream | None = None,
strict: bool | None = None,
) -> None:
r"""
Send columnar data to Rerun.
Expand Down

0 comments on commit c38f6d4

Please sign in to comment.