Skip to content

Commit 84e181e

Browse files
committed
Drop comments replicating docstring info.
Incorporates feedback from @dhermes.
1 parent 0f3828a commit 84e181e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gcloud/storage/connection.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,10 @@ def _get_expiration_seconds(expiration):
509509
510510
:type expiration: int, long, datetime.datetime, datetime.timedelta
511511
:param expiration: When the signed URL should expire.
512-
"""
513512
514-
# expiration can be an absolute timestamp (int, long),
515-
# an absolute time (datetime.datetime),
516-
# or a relative time (datetime.timedelta).
517-
# We should convert all of these into an absolute timestamp.
513+
:rtype: int
514+
:returns: a timestamp as an absolute number of seconds.
515+
"""
518516

519517
# If it's a timedelta, add it to `now` in UTC.
520518
if isinstance(expiration, datetime.timedelta):

0 commit comments

Comments
 (0)