mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Flake8: Fix F821 undefined name; to prevent introducting Mypy depedency
This commit is contained in:
		
							parent
							
								
									187ba3f6e8
								
							
						
					
					
						commit
						6d0e4a838f
					
				| 
						 | 
					@ -393,8 +393,6 @@ class PdfParser:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, filename=None, f=None,
 | 
					    def __init__(self, filename=None, f=None,
 | 
				
			||||||
                 buf=None, start_offset=0, mode="rb"):
 | 
					                 buf=None, start_offset=0, mode="rb"):
 | 
				
			||||||
        # type: (PdfParser, str, file, Union[bytes, bytearray], int, str)
 | 
					 | 
				
			||||||
        #       -> None
 | 
					 | 
				
			||||||
        if buf and f:
 | 
					        if buf and f:
 | 
				
			||||||
            raise RuntimeError(
 | 
					            raise RuntimeError(
 | 
				
			||||||
                "specify buf or f or filename, but not both buf and f")
 | 
					                "specify buf or f or filename, but not both buf and f")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user