From 1e858172519e9339e4720b8bf9b39b6d9801e305 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 28 May 2022 19:29:08 -0700 Subject: Tweak around docstring to make prettier sphinx autodocs. --- persistent.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'persistent.py') diff --git a/persistent.py b/persistent.py index b42a5c0..0391144 100644 --- a/persistent.py +++ b/persistent.py @@ -32,7 +32,6 @@ class Persistent(ABC): """ Save this thing somewhere that you'll remember when someone calls load() later on in a way that makes sense to your code. - """ pass @@ -45,7 +44,7 @@ class Persistent(ABC): below) be save()d at program exit time. Oh, in case this is handy, here's how to write a factory - method that doesn't call the c'tor in python: + method that doesn't call the c'tor in python:: @classmethod def load_from_somewhere(cls, somewhere): @@ -58,7 +57,6 @@ class Persistent(ABC): # Load the piece(s) of obj that you want to from somewhere. obj._state = load_from_somewhere(somewhere) return obj - """ pass @@ -127,7 +125,6 @@ class PersistAtShutdown(enum.Enum): """ An enum to describe the conditions under which state is persisted to disk. See details below. - """ NEVER = (0,) @@ -153,7 +150,6 @@ class persistent_autoloaded_singleton(object): The implementations of save() and load() and where the class persists its state are details left to the Persistent implementation. - """ def __init__( -- cgit v1.3