mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Clarify importlib.abc.PyPycLoader.write_bytecode().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user