Skip to content

Commit

Permalink
Change: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalmazor committed Jan 24, 2024
1 parent 9c4b55a commit 43dbb4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dnsimple/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ def return_list_of(cls, data):
"""
return [cls(x) for x in data]


def return_list_with_headers_of(cls, data, headers):
"""
Returns a list of instances of the class type found in the response.
:param cls: class
The class type we want to instantiate
:param values: list
:param data: list
The data containing the list of values we want to return as objects
:param data: headers
:param headers: list
The data containing the attribute names of each value array
:return:
A list of objects of the type specified found in the response
Expand Down
3 changes: 2 additions & 1 deletion dnsimple/service/dns_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def query(self, account_id, filter=None, sort=None, params=None, page=None, per_
Makes it change the shape of the obtained results
Possible params:
- groupings: Group results by the provided list of attributes separated by a comma. Possible attributes are: date, zone. (i.e. {'groupings': 'date,zone'} )
- groupings: Group results by the provided list of attributes separated by a comma. Possible attributes
are: date, zone. (i.e. {'groupings': 'date,zone'} )
:param sort: str
Comma separated key-value pairs: the name of a field and the order criteria (asc for ascending and desc for
descending).
Expand Down

0 comments on commit 43dbb4f

Please sign in to comment.