Skip to content

Commit

Permalink
fix: dead links in datetime parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp-Eyes committed Sep 19, 2024
1 parent 58ac754 commit 31b6282
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/disnake/ext/components/impl/parser/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ class DatetimeParser(parser_base.Parser[datetime.datetime]):
strict:
Whether this parser is in strict mode.
Defaults to ``True``.
int_parser:
The :class:`IntParser` to use internally for this parser.
"""

resolution: int | float
Expand Down Expand Up @@ -498,7 +499,7 @@ def __init__(
def loads(self, argument: str) -> datetime.datetime:
"""Load a datetime from a string.
This uses the underlying :attr:`number_parser`.
This uses the underlying :attr:`int_parser`.
The returned datetime is always of the specified :attr:`timezone`.
Expand All @@ -516,7 +517,7 @@ def loads(self, argument: str) -> datetime.datetime:
def dumps(self, argument: datetime.datetime) -> str:
"""Dump a datetime into a string.
This uses the underlying :attr:`number_parser`.
This uses the underlying :attr:`int_parser`.
If :attr:`strict` is set to ``True``, this will fail if the provided
``argument`` does not have a timezone set. Otherwise, a timezone-naive
Expand Down

0 comments on commit 31b6282

Please sign in to comment.