mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	typing: Amend inaccurate type annotations.
This amend some type annotations that turn out to be inaccurate with django-stubs.
This commit is contained in:
		@@ -369,7 +369,7 @@ def ad_hoc_queries() -> List[Dict[str, str]]:
 | 
			
		||||
        cursor.close()
 | 
			
		||||
 | 
			
		||||
        def fix_rows(
 | 
			
		||||
            i: int, fixup_func: Union[Callable[[Realm], mark_safe], Callable[[datetime], str]]
 | 
			
		||||
            i: int, fixup_func: Union[Callable[[str], mark_safe], Callable[[datetime], str]]
 | 
			
		||||
        ) -> None:
 | 
			
		||||
            for row in rows:
 | 
			
		||||
                row[i] = fixup_func(row[i])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user