mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Clarify importlib.abc.PyPycLoader.write_bytecode().
This commit is contained in:
		
							parent
							
								
									6b7dfc924d
								
							
						
					
					
						commit
						b89ee8eae8
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -132,7 +132,8 @@ def bytecode_path(self, fullname:str) -> object:
 | 
				
			||||||
        raise NotImplementedError
 | 
					        raise NotImplementedError
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @abc.abstractmethod
 | 
					    @abc.abstractmethod
 | 
				
			||||||
    def write_bytecode(self, fullname:str, bytecode:bytes):
 | 
					    def write_bytecode(self, fullname:str, bytecode:bytes) -> bool:
 | 
				
			||||||
        """Abstract method which when implemented should attempt to write the
 | 
					        """Abstract method which when implemented should attempt to write the
 | 
				
			||||||
        bytecode for the module."""
 | 
					        bytecode for the module, returning a boolean representing whether the
 | 
				
			||||||
 | 
					        bytecode was written or not."""
 | 
				
			||||||
        raise NotImplementedError
 | 
					        raise NotImplementedError
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue