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
1 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,8 @@ class PyPycLoader(_bootstrap.PyPycLoader, PyLoader):
raise NotImplementedError
@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
bytecode for the module."""
bytecode for the module, returning a boolean representing whether the
bytecode was written or not."""
raise NotImplementedError