From: Brett Cannon Date: Sat, 12 Dec 2009 22:35:59 +0000 (+0000) Subject: Clarify importlib.abc.PyPycLoader.write_bytecode(). X-Git-Tag: v3.2a1~2053 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b89ee8eae8a20d893644064552ea65cc5217c96c;p=python Clarify importlib.abc.PyPycLoader.write_bytecode(). --- diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index c912280ff1..d6f4520464 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