mypy: Explicitly return Set[Any] for empty set in backends.py.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-11-01 22:36:10 -07:00 committed by Tim Abbott
parent 54cbb808e6
commit 1197ff9655
1 changed files with 4 additions and 4 deletions

View File

@ -395,15 +395,15 @@ class ZulipLDAPAuthBackendBase(ZulipAuthMixin, LDAPBackend):
return False return False
def get_all_permissions(self, user, obj=None): def get_all_permissions(self, user, obj=None):
# type: (Optional[UserProfile], Any) -> Set # type: (Optional[UserProfile], Any) -> Set[Any]
# Using Any type is safe because we are not doing anything with # Using Any type is safe because we are not doing anything with
# the arguments. # the arguments and always return empty set.
return set() return set()
def get_group_permissions(self, user, obj=None): def get_group_permissions(self, user, obj=None):
# type: (Optional[UserProfile], Any) -> Set # type: (Optional[UserProfile], Any) -> Set[Any]
# Using Any type is safe because we are not doing anything with # Using Any type is safe because we are not doing anything with
# the arguments. # the arguments and always return empty set.
return set() return set()
def django_to_ldap_username(self, username): def django_to_ldap_username(self, username):