|  |  | @@ -1,3 +1,5 @@ | 
		
	
		
			
			|  |  |  | from typing import List | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | from .exceptions import GrammarError, ConfigurationError | 
		
	
		
			
			|  |  |  | from .lexer import Token | 
		
	
		
			
			|  |  |  | from .tree import Tree | 
		
	
	
		
			
				|  |  | @@ -151,7 +153,7 @@ def _should_expand(sym): | 
		
	
		
			
			|  |  |  | return not sym.is_term and sym.name.startswith('_') | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | def maybe_create_child_filter(expansion, keep_all_tokens, ambiguous, _empty_indices: list): | 
		
	
		
			
			|  |  |  | def maybe_create_child_filter(expansion, keep_all_tokens, ambiguous, _empty_indices: List[bool]): | 
		
	
		
			
			|  |  |  | # Prepare empty_indices as: How many Nones to insert at each index? | 
		
	
		
			
			|  |  |  | if _empty_indices: | 
		
	
		
			
			|  |  |  | assert _empty_indices.count(False) == len(expansion) | 
		
	
	
		
			
				|  |  | 
 |