Skip to content

Commit

Permalink
What *IS* pylint's problem here?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Dec 12, 2023
1 parent a7a3f5d commit 3e9acd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datacube_ows/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ def group_by_solar(pnames: Optional[List[str]] = None) -> "datacube.api.query.Gr
else:
sort_key = base_sort_key
# Wrap solar_day so we consistently get a datetime.
# (Don't know why I have to disable pylint for GHA check - passes fine locally.)
solar_day_py = lambda x: datetime.datetime.fromtimestamp(
solar_day(x).astype(int) * 1e-9,
(solar_day(x).astype(int) * 1e-9), # pylint: disable=too-many-function-args
tz=datetime.timezone.utc
)
return GroupBy(
Expand Down

0 comments on commit 3e9acd6

Please sign in to comment.