diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-12-12 22:35:59 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-12-12 22:35:59 (GMT) |
commit | b89ee8eae8a20d893644064552ea65cc5217c96c (patch) | |
tree | 16851d6e9f560fab4e43f2aae2005c9c7b39c2ba /Lib | |
parent | 6b7dfc924d094d2cad8d7b88a7b2d787e41f8ed4 (diff) | |
download | cpython-b89ee8eae8a20d893644064552ea65cc5217c96c.zip cpython-b89ee8eae8a20d893644064552ea65cc5217c96c.tar.gz cpython-b89ee8eae8a20d893644064552ea65cc5217c96c.tar.bz2 |
Clarify importlib.abc.PyPycLoader.write_bytecode().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/abc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index c912280..d6f4520 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -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 |