Skip to content

Commit 6ccede0

Browse files
author
Mathias BIGAIGNON
committed
Fix some type issue
1 parent 06ca7f8 commit 6ccede0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

entitled/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def grants(
4343
actor: Any,
4444
resource: Any,
4545
context: dict[str, Any] | None = None,
46-
) -> dict[Any, bool]:
46+
) -> dict[str, bool]:
4747
policy = self._policy_lookup(resource)
4848
return policy.grants(actor, resource, context)
4949

entitled/policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __register(self, action: str, *rules: Rule[T]):
4545

4646
def grants(
4747
self, actor: Any, resource: T | type[T], context: dict[str, Any] | None = None
48-
) -> dict[Any, bool]:
48+
) -> dict[str, bool]:
4949
return {
5050
action: self.allows(action, actor, resource, context)
5151
for action in self._registry

0 commit comments

Comments
 (0)