Skip to content

Commit 8cfc3e1

Browse files
committed
run linter
1 parent 23e6a11 commit 8cfc3e1

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

aredis_om/model/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def __str__(self):
2323

2424
def parse_redis(v: Any):
2525
"""
26-
The pydantic coordinate type expects a string in the format 'latitude,longitude'.
27-
Redis expects a string in the format 'longitude,latitude'.
26+
The pydantic coordinate type expects a string in the format 'latitude,longitude'.
27+
Redis expects a string in the format 'longitude,latitude'.
2828
29-
This validator transforms the input from Redis into the expected format for pydantic.
29+
This validator transforms the input from Redis into the expected format for pydantic.
3030
"""
3131
if isinstance(v, str):
3232
parts = v.split(",")

tests/test_hash_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,10 @@ class Meta:
11551155
await loc2.save()
11561156

11571157
rematerialized: List[Location] = await Location.find(
1158-
(Location.coordinates == GeoFilter(longitude=longitude, latitude=latitude, radius=10, unit="mi"))
1158+
(
1159+
Location.coordinates
1160+
== GeoFilter(longitude=longitude, latitude=latitude, radius=10, unit="mi")
1161+
)
11591162
& (Location.name == "Portland")
11601163
).all()
11611164

tests/test_json_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,10 @@ class Meta:
14651465
await loc2.save()
14661466

14671467
rematerialized: List[Location] = await Location.find(
1468-
(Location.coordinates == GeoFilter(longitude=longitude, latitude=latitude, radius=10, unit="mi"))
1468+
(
1469+
Location.coordinates
1470+
== GeoFilter(longitude=longitude, latitude=latitude, radius=10, unit="mi")
1471+
)
14691472
& (Location.name == "Portland")
14701473
).all()
14711474

0 commit comments

Comments
 (0)