Skip to content

Commit ace537d

Browse files
committed
Linted src code
Signed-off-by: Saif Ul Islam <[email protected]>
1 parent 1998614 commit ace537d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/mapillary/models/api/entities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ def fetch_map_feature(
144144
).content.decode("utf-8")
145145
)
146146

147-
def fetch_detections(
148-
self, identity: int, id_type: bool = True, fields: list = []
149-
):
147+
def fetch_detections(self, identity: int, id_type: bool = True, fields: list = []):
150148
"""
151149
Fetches detections depending on the id, detections for either map_features or
152150
images and the fields provided

src/mapillary/utils/format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def detection_features_to_geojson(feature_list: list) -> dict:
249249
# "id" is always available in the response
250250
"id": feature["id"],
251251
},
252-
"properties": {}
252+
"properties": {},
253253
}
254254
# Going through the given of features
255255
for feature in feature_list
@@ -268,11 +268,11 @@ def detection_features_to_geojson(feature_list: list) -> dict:
268268
if value is not None:
269269

270270
# Add that property to the _feature
271-
_feature['properties'][key] = value
271+
_feature["properties"][key] = value
272272

273273
for _feature in resulting_geojson["features"]:
274274

275-
del _feature['possible_none_properties']
275+
del _feature["possible_none_properties"]
276276

277277
# Finally return the output
278278
return resulting_geojson

0 commit comments

Comments
 (0)