mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Issue 10899: Remove function type annotations from the stdlib
This commit is contained in:
		
							parent
							
								
									cd92f37582
								
							
						
					
					
						commit
						00fa03900c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1567,7 +1567,7 @@ def fileno(self):
 | 
				
			||||||
    def isatty(self):
 | 
					    def isatty(self):
 | 
				
			||||||
        return self.buffer.isatty()
 | 
					        return self.buffer.isatty()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def write(self, s: str):
 | 
					    def write(self, s):
 | 
				
			||||||
        if self.closed:
 | 
					        if self.closed:
 | 
				
			||||||
            raise ValueError("write to closed file")
 | 
					            raise ValueError("write to closed file")
 | 
				
			||||||
        if not isinstance(s, str):
 | 
					        if not isinstance(s, str):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue