mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	ruff: Fix UP033 Use @functools.cache.
				
					
				
			Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							fd970e0520
						
					
				
				
					commit
					a82a3eb4d7
				
			@@ -9,7 +9,7 @@ import traceback
 | 
			
		||||
import uuid
 | 
			
		||||
from collections import deque
 | 
			
		||||
from contextlib import suppress
 | 
			
		||||
from functools import lru_cache
 | 
			
		||||
from functools import cache
 | 
			
		||||
from typing import (
 | 
			
		||||
    AbstractSet,
 | 
			
		||||
    Any,
 | 
			
		||||
@@ -1110,7 +1110,7 @@ def process_message_event(
 | 
			
		||||
    recipient_type_name: str = wide_dict["type"]
 | 
			
		||||
    sending_client: str = wide_dict["client"]
 | 
			
		||||
 | 
			
		||||
    @lru_cache(maxsize=None)
 | 
			
		||||
    @cache
 | 
			
		||||
    def get_client_payload(
 | 
			
		||||
        apply_markdown: bool, client_gravatar: bool, can_access_sender: bool
 | 
			
		||||
    ) -> Dict[str, Any]:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user