mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	mypy: Set freshdesk TicketDict to inherit from typed Dict.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							6c995db231
						
					
				
				
					commit
					720df640e7
				
			@@ -16,7 +16,7 @@ import ujson
 | 
				
			|||||||
from typing import Any, Dict, List, Optional, Tuple, Union, Text
 | 
					from typing import Any, Dict, List, Optional, Tuple, Union, Text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TicketDict(dict):
 | 
					class TicketDict(Dict[str, Any]):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    A helper class to turn a dictionary with ticket information into
 | 
					    A helper class to turn a dictionary with ticket information into
 | 
				
			||||||
    an object where each of the keys is an attribute for easy access.
 | 
					    an object where each of the keys is an attribute for easy access.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user