Skip to content

Commit d271b10

Browse files
committed
Remove more non-typing annotations.
1 parent 6606b2e commit d271b10

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

postgresql/cluster.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def hba_file(self, join = os.path.join):
155155
)
156156

157157
def __init__(self,
158-
installation : "installation object",
159-
data_directory : "path to the data directory",
158+
installation,
159+
data_directory,
160160
):
161161
self.installation = installation
162162
self.data_directory = os.path.abspath(data_directory)
@@ -191,9 +191,7 @@ def __exit__(self, typ, val, tb):
191191
self.wait_until_stopped()
192192

193193
def init(self,
194-
password : \
195-
"Password to assign to the " \
196-
"cluster's superuser(`user` keyword)." = None,
194+
password = None,
197195
**kw
198196
):
199197
"""
@@ -334,8 +332,8 @@ def drop(self):
334332
os.rmdir(self.data_directory)
335333

336334
def start(self,
337-
logfile : "Where to send stderr" = None,
338-
settings : "Mapping of runtime parameters" = None
335+
logfile = None,
336+
settings = None
339337
):
340338
"""
341339
Start the cluster.
@@ -573,8 +571,8 @@ def ready_for_connections(self):
573571
return e if e is not None else True
574572

575573
def wait_until_started(self,
576-
timeout : "how long to wait before throwing a timeout exception" = 10,
577-
delay : "how long to sleep before re-testing" = 0.05,
574+
timeout = 10,
575+
delay = 0.05,
578576
):
579577
"""
580578
After the `start` method is used, this can be ran in order to block
@@ -625,8 +623,8 @@ def wait_until_started(self,
625623
time.sleep(delay)
626624

627625
def wait_until_stopped(self,
628-
timeout : "how long to wait before throwing a timeout exception" = 10,
629-
delay : "how long to sleep before re-testing" = 0.05
626+
timeout = 10,
627+
delay = 0.05
630628
):
631629
"""
632630
After the `stop` method is used, this can be ran in order to block until

0 commit comments

Comments
 (0)