]> granicus.if.org Git - python/commitdiff
Clarify importlib.abc.PyPycLoader.write_bytecode().
authorBrett Cannon <bcannon@gmail.com>
Sat, 12 Dec 2009 22:35:59 +0000 (22:35 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 12 Dec 2009 22:35:59 +0000 (22:35 +0000)
Lib/importlib/abc.py

index c912280ff1ed4c76dac201f414295abee229805a..d6f45204643c4f4f15c488cb75263211c9506f17 100644 (file)
@@ -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