mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	python: Accept Optional[FrameType] in signal handlers.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7a9074ecfd
						
					
				
				
					commit
					702ce071f4
				
			@@ -5,6 +5,7 @@ import subprocess
 | 
			
		||||
import sys
 | 
			
		||||
import time
 | 
			
		||||
import types
 | 
			
		||||
from typing import Optional
 | 
			
		||||
 | 
			
		||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
 | 
			
		||||
 | 
			
		||||
@@ -22,7 +23,7 @@ def check_worker_launch(run_dev: "subprocess.Popen[str]") -> bool:
 | 
			
		||||
    failed = False
 | 
			
		||||
    i = 0
 | 
			
		||||
 | 
			
		||||
    def on_timer(signum: int, frame: types.FrameType) -> None:
 | 
			
		||||
    def on_timer(signum: int, frame: Optional[types.FrameType]) -> None:
 | 
			
		||||
        nonlocal failed, i
 | 
			
		||||
        sys.stdout.write(".")
 | 
			
		||||
        sys.stdout.flush()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user