mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	fix(MultipleChoice): Simplify super() call and value types
It was using the wrong instance, leaving the convert() method to seemingly default to str() for the returned chosen value types (or something, I don't really see why this works).
This commit is contained in:
		
							parent
							
								
									423ff289db
								
							
						
					
					
						commit
						eeccdc37cf
					
				@ -157,7 +157,7 @@ class MultipleChoice(click.Choice):
 | 
			
		||||
 | 
			
		||||
        chosen_values: list[Any] = []
 | 
			
		||||
        for value in values:
 | 
			
		||||
            chosen_values.append(super(click.Choice, self).convert(value, param, ctx))
 | 
			
		||||
            chosen_values.append(super().convert(value, param, ctx))
 | 
			
		||||
 | 
			
		||||
        return chosen_values
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user