mypy: Fix some new errors flagged by latest mypy master.
Mostly list -> List bugs in annotations.
This commit is contained in:
		
							parent
							
								
									1894a134f8
								
							
						
					
					
						commit
						fa67e87d3d
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -573,7 +573,7 @@ def zephyr_to_zulip(options):
 | 
			
		|||
        process_loop(None)
 | 
			
		||||
 | 
			
		||||
def send_zephyr(zwrite_args, content):
 | 
			
		||||
    # type: (list, str) -> Tuple[int, str]
 | 
			
		||||
    # type: (List, str) -> Tuple[int, str]
 | 
			
		||||
    p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE,
 | 
			
		||||
                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 | 
			
		||||
    stdout, stderr = p.communicate(input=content.encode("utf-8"))
 | 
			
		||||
| 
						 | 
				
			
			@ -590,11 +590,11 @@ def send_zephyr(zwrite_args, content):
 | 
			
		|||
    return (p.returncode, stderr)
 | 
			
		||||
 | 
			
		||||
def send_authed_zephyr(zwrite_args, content):
 | 
			
		||||
    # type: (list[str], str) -> Tuple[int, str]
 | 
			
		||||
    # type: (List[str], str) -> Tuple[int, str]
 | 
			
		||||
    return send_zephyr(zwrite_args, content)
 | 
			
		||||
 | 
			
		||||
def send_unauthed_zephyr(zwrite_args, content):
 | 
			
		||||
    # type: (list[str], str) -> Tuple[int, str]
 | 
			
		||||
    # type: (List[str], str) -> Tuple[int, str]
 | 
			
		||||
    return send_zephyr(zwrite_args + ["-d"], content)
 | 
			
		||||
 | 
			
		||||
def zcrypt_encrypt_content(zephyr_class, instance, content):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue