Skip to content

Commit 2d100f2

Browse files
authored
Merge pull request #667 from Sengolda/patch-12
Type-hinted, un typehinted dunder methods
2 parents e23ae46 + 3c06b46 commit 2d100f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord/permissions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ def is_strict_superset(self, other: Permissions) -> bool:
132132
"""Returns ``True`` if the permissions on other are a strict superset of those on self."""
133133
return self.is_superset(other) and self != other
134134

135-
__le__ = is_subset
136-
__ge__ = is_superset
137-
__lt__ = is_strict_subset
138-
__gt__ = is_strict_superset
135+
__le__: Callable[[Permissions], bool] = is_subset
136+
__ge__: Callable[[Permissions], bool] = is_superset
137+
__lt__: Callable[[Permissions], bool] = is_strict_subset
138+
__gt__: Callable[[Permissions], bool] = is_strict_superset
139139

140140
@classmethod
141141
def none(cls: Type[P]) -> P:

0 commit comments

Comments
 (0)