Skip to content

Commit 5469bc7

Browse files
committed
Fixed incorrect datetime_ parameter docs.
1 parent 99074a9 commit 5469bc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github2/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def ghdate_to_datetime(github_date):
3535
def datetime_to_ghdate(datetime_):
3636
"""Convert Python datetime to Github date string
3737
38-
:param str datetime_: datetime object to convert
38+
:param datetime datetime_: datetime object to convert
3939
"""
4040
date_without_tz = datetime_.strftime(GITHUB_DATE_FORMAT)
4141
return " ".join([date_without_tz, GITHUB_TIMEZONE])
@@ -53,7 +53,7 @@ def commitdate_to_datetime(commit_date):
5353
def datetime_to_commitdate(datetime_):
5454
"""Convert Python datetime to Github date string
5555
56-
:param str datetime_: datetime object to convert
56+
:param datetime datetime_: datetime object to convert
5757
"""
5858
date_without_tz = datetime_.strftime(COMMIT_DATE_FORMAT)
5959
return "".join([date_without_tz, COMMIT_TIMEZONE])

0 commit comments

Comments
 (0)