Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit b4f05c2

Browse files
committed
Improved docstrings again
1 parent e5f8c50 commit b4f05c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PyDrocsid/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ async def convert(self, ctx: Context[Bot], argument: str) -> User | Member:
6565

6666
class DurationConverter(Converter[int | None]):
6767
"""
68-
Converter for retrieving minutes from a string containing different time units
68+
Converter for retrieving minutes from a string containing different time units.
6969
"""
7070

7171
async def convert(self, ctx: Context[Bot], argument: str) -> int | None:
7272
"""
7373
Extracts information about years, months, weeks, days, hours and minutes from a string
74-
and returns the total amount of time in minutes
74+
and returns the total amount of time in minutes.
7575
:param ctx: the context the converter was called in
7676
:param argument: the string with the different time units or a variation of 'inf' for an infinite time span
7777
:returns: the total amount of time in minutes as an int or None if the time span is infinite

PyDrocsid/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def check_message_send_permissions(
238238

239239
def time_to_units(minutes: int | float) -> str:
240240
"""
241-
Util function to split a time span given in minutes into the different units years, months, days, hours and minutes
241+
Util-function to split a time span given in minutes into the different units years, months, days, hours and minutes.
242242
"""
243243
_keys = ("years", "months", "days", "hours", "minutes")
244244

0 commit comments

Comments
 (0)