Commit b89ee8ea authored by Brett Cannon's avatar Brett Cannon

Clarify importlib.abc.PyPycLoader.write_bytecode().

parent 6b7dfc92
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment