mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	mypy: Explicitly return Set[Any] for empty set in backends.py.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							54cbb808e6
						
					
				
				
					commit
					1197ff9655
				
			@@ -395,15 +395,15 @@ class ZulipLDAPAuthBackendBase(ZulipAuthMixin, LDAPBackend):
 | 
			
		||||
        return False
 | 
			
		||||
 | 
			
		||||
    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
 | 
			
		||||
        # the arguments.
 | 
			
		||||
        # the arguments and always return empty set.
 | 
			
		||||
        return set()
 | 
			
		||||
 | 
			
		||||
    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
 | 
			
		||||
        # the arguments.
 | 
			
		||||
        # the arguments and always return empty set.
 | 
			
		||||
        return set()
 | 
			
		||||
 | 
			
		||||
    def django_to_ldap_username(self, username):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user