@@ -857,7 +857,7 @@ def http_list(
857857 Returns:
858858 A list of the objects returned by the server. If `iterator` is
859859 True and no pagination-related arguments (`page`, `per_page`,
860- `all `) are defined then a GitlabList object (generator) is returned
860+ `get_all `) are defined then a GitlabList object (generator) is returned
861861 instead. This object will make API calls when needed to fetch the
862862 next items from the server.
863863
@@ -884,7 +884,13 @@ def http_list(
884884category = DeprecationWarning ,
885885 )
886886
887- get_all = kwargs .pop ("all" ,None )
887+ # Provide a `get_all`` param to avoid clashes with `all` API attributes.
888+ get_all = kwargs .pop ("get_all" ,None )
889+
890+ if get_all is None :
891+ # For now, keep `all` without deprecation.
892+ get_all = kwargs .pop ("all" ,None )
893+
888894url = self ._build_url (path )
889895
890896page = kwargs .get ("page" )
@@ -902,7 +908,7 @@ def http_list(
902908
903909def should_emit_warning ()-> bool :
904910# No warning is emitted if any of the following conditions apply:
905- # * `all =False` was set in the `list()` call.
911+ # * `get_all =False` was set in the `list()` call.
906912# * `page` was set in the `list()` call.
907913# * GitLab did not return the `x-per-page` header.
908914# * Number of items received is less than per-page value.
@@ -927,12 +933,12 @@ def should_emit_warning() -> bool:
927933total_items = "many" if gl_list .total is None else gl_list .total
928934utils .warn (
929935message = (
930- f"Calling a `list()` method without specifying `all =True` or "
936+ f"Calling a `list()` method without specifying `get_all =True` or "
931937f"`iterator=True` will return a maximum of{ gl_list .per_page } items. "
932938f"Your query returned{ len (items )} of{ total_items } items. See "
933939f"{ _PAGINATION_URL } for more details. If this was done intentionally, "
934940f"then this warning can be supressed by adding the argument "
935- f"`all =False` to the `list()` call."
941+ f"`get_all =False` to the `list()` call."
936942 ),
937943category = UserWarning ,
938944 )