File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,16 @@ b'%c' % (123)
265265-- ------------------
266266
267267
268+ [case testFormatCallNoneAlignment]
269+ '{:<1}'.format(None)  # E: Alignment format specifier "<" is not supported for None
270+ '{:>1}'.format(None)  # E: Alignment format specifier ">" is not supported for None
271+ '{:^1}'.format(None)  # E: Alignment format specifier "^" is not supported for None
272+ 
273+ '{:<10}'.format('16') # OK
274+ '{:>10}'.format('16') # OK
275+ '{:^10}'.format('16') # OK
276+ [builtins fixtures/primitives.pyi]
277+ 
268278[case testFormatCallParseErrors]
269279'}'.format()  # E: Invalid conversion specifier in format string: unexpected }
270280'{'.format()  # E: Invalid conversion specifier in format string: unmatched {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments