Skip to content

Commit

Permalink
Fix post_request_hook not accepting *args and **kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
eray-inuits committed Nov 17, 2023
1 parent 9d338f4 commit 0edcd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inuits_policy_based_auth/helpers/access_restrictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class AccessRestrictions:
----------
filters : Unknown
Object used to filter on attributes of documents.
post_request_hook : (response: Unknown) -> Unknown
post_request_hook : (response: Unknown, *args: Unknown, **kwargs: Unknown) -> Unknown
Function used to manipulate response data of a request.
"""

def __init__(self):
self._filters = None
self._post_request_hook = lambda response: response
self._post_request_hook = lambda response, *args, **kwargs: response

@property
def filters(self):
Expand Down

0 comments on commit 0edcd6b

Please sign in to comment.