Skip to content

Commit 91473c6

Browse files
committed
Replaced default value of list with [], instead of None
Signed-off-by: Saif Ul Islam <[email protected]>
1 parent 3a6ea84 commit 91473c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/mapillary/controller/detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
def get_image_detections_controller(
33-
image_id: typing.Union[str, int], fields: list = None
33+
image_id: typing.Union[str, int], fields: list = []
3434
) -> GeoJSON:
3535
"""
3636
Get image detections with given (image) key
@@ -60,7 +60,7 @@ def get_image_detections_controller(
6060

6161

6262
def get_map_feature_detections_controller(
63-
map_feature_id: typing.Union[str, int], fields: list = None
63+
map_feature_id: typing.Union[str, int], fields: list = []
6464
) -> GeoJSON:
6565
"""
6666
Get image detections with given (map feature) key

src/mapillary/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def get_image_looking_at(
195195

196196

197197
@auth()
198-
def get_detections_with_image_id(image_id: int, fields: list = None):
198+
def get_detections_with_image_id(image_id: int, fields: list = []):
199199
"""
200200
Extracting all the detections within an image using an image key
201201

src/mapillary/models/api/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def fetch_map_feature(
145145
)
146146

147147
def fetch_detections(
148-
self, identity: int, id_type: bool = True, fields: list = None
148+
self, identity: int, id_type: bool = True, fields: list = []
149149
):
150150
"""
151151
Fetches detections depending on the id, detections for either map_features or

0 commit comments

Comments
 (0)