Skip to content

Commit cf8c0f2

Browse files
committed
Improves some docstrings
1 parent 9e08ea6 commit cf8c0f2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pendulum/formatting/alternative_formatter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def format(self, dt, fmt, locale=None):
104104
Formats a Pendulum instance with a given format and locale.
105105
106106
:param dt: The instance to format
107-
:type dt: Pendulum
107+
:type dt: pendulum.Pendulum
108108
109109
:param fmt: The format to use
110110
:type fmt: str
@@ -131,7 +131,7 @@ def _format_token(self, dt, token, locale):
131131
Formats a Pendulum instance with a given token and locale.
132132
133133
:param dt: The instance to format
134-
:type dt: Pendulum
134+
:type dt: pendulum.Pendulum
135135
136136
:param token: The token to use
137137
:type token: str
@@ -174,7 +174,7 @@ def _format_localizable_token(self, dt, token, locale):
174174
with a given localizable token and locale.
175175
176176
:param dt: The instance to format
177-
:type dt: Pendulum
177+
:type dt: pendulum.Pendulum
178178
179179
:param token: The token to use
180180
:type token: str

pendulum/formatting/classic_formatter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def format(self, dt, fmt, locale=None):
1616
Formats a Pendulum instance with a given format and locale.
1717
1818
:param dt: The instance to format
19-
:type dt: Pendulum or Date
19+
:type dt: pendulum.Pendulum or pendulum.Date
2020
2121
:param fmt: The format to use
2222
:type fmt: str
@@ -48,7 +48,7 @@ def _localize_directive(self, dt, directive, locale):
4848
Localize a native strftime directive.
4949
5050
:param dt: The instance to format
51-
:type dt: Pendulum
51+
:type dt: pendulum.Pendulum
5252
5353
:param directive: The directive to localize
5454
:type directive: str
@@ -87,7 +87,7 @@ def _strftime(self, dt, m, locale):
8787
Handles custom formatters in format string.
8888
8989
:param dt: The instance to format
90-
:type dt: Pendulum
90+
:type dt: pendulum.Pendulum
9191
9292
:return: str
9393
"""

0 commit comments

Comments
 (0)