Skip to content

Commit

Permalink
Listen to codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
apiad committed Jan 27, 2018
1 parent 1ec7bbb commit eebf6d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jsonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def _extract(self, query, label, parse=False):

return args, query

def _convert(self, args, annotations):
@staticmethod
def _convert(args, annotations):
result = {}

for k,v in args.items():
Expand All @@ -157,7 +158,8 @@ def _meta_items(self, obj, query):
if isinstance(obj, dict):
return {str(k): self._query(v, query) for k,v in obj.items()}

def _meta_keys(self, obj, query):
@staticmethod
def _meta_keys(obj, query):
return list(obj.keys())

def _meta_values(self, obj, query):
Expand Down

0 comments on commit eebf6d6

Please sign in to comment.