Clarify importlib.abc.PyPycLoader.write_bytecode().

This commit is contained in:
Brett Cannon 2009-12-12 22:35:59 +00:00
parent 6b7dfc924d
commit b89ee8eae8

View file

@ -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