Skip to content

Commit e8b634f

Browse files
committed
[code] Fix ProcedureWrapper.__hash__ method
1 parent 1e44664 commit e8b634f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modernrpc/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def __eq__(self, other: object) -> bool:
117117
and self.auth == other.auth
118118
)
119119

120-
def __hash__(self):
121-
return hash(self.func_or_coro)
120+
def __hash__(self) -> int:
121+
return hash((self.func_or_coro, self.name, self.protocol))
122122

123123
def check_permissions(self, request: HttpRequest) -> Any:
124124
"""

0 commit comments

Comments
 (0)