mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +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 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue