Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Sep 6, 2024
1 parent 931123c commit 5370471
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions odc/geo/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ def _make_crs_transform_key(from_crs, to_crs, always_xy, force_over=False):


@cachetools.cached({}, key=_make_crs_transform_key)
def _make_crs_transform(from_crs: _CRS, to_crs: _CRS, always_xy: bool, force_over: bool = False) -> Transformer:
return Transformer.from_crs(from_crs, to_crs, always_xy=always_xy, force_over=force_over)
def _make_crs_transform(
from_crs: _CRS, to_crs: _CRS, always_xy: bool, force_over: bool = False
) -> Transformer:
return Transformer.from_crs(
from_crs, to_crs, always_xy=always_xy, force_over=force_over
)


class CRS:
Expand Down Expand Up @@ -318,7 +322,9 @@ def transformer_to_crs(
"""

# pylint: disable=protected-access
tr = _make_crs_transform(self._crs, other._crs, always_xy=always_xy, force_over=force_over)
tr = _make_crs_transform(
self._crs, other._crs, always_xy=always_xy, force_over=force_over
)

def result(x, y, **kw):
rx, ry = tr.transform(x, y, **kw) # pylint: disable=unpacking-non-sequence
Expand Down

0 comments on commit 5370471

Please sign in to comment.