Browse Source

More docstring fixes

pull/9685/head
Developer Anonymous 9 months ago
parent
commit
a2c431c21c
  1. 8
      discord/scheduled_event.py

8
discord/scheduled_event.py

@ -137,7 +137,7 @@ class ScheduledEventRecurrenceRule:
@property @property
def weekdays(self) -> Optional[List[date]]: def weekdays(self) -> Optional[List[date]]:
"""Optional[List[:class:`dateutil.rrule.weekday`]]: Returns a read-only list of the weekdays """Optional[List[:class:`datetime.date`]]: Returns a read-only list of the weekdays
this event recurs on, or ``None``. this event recurs on, or ``None``.
""" """
if self._weekdays in (MISSING, None): if self._weekdays in (MISSING, None):
@ -150,7 +150,7 @@ class ScheduledEventRecurrenceRule:
@property @property
def n_weekdays(self) -> Optional[List[_NWeekday]]: def n_weekdays(self) -> Optional[List[_NWeekday]]:
"""Optional[List[Tuple[:class:`int`, :class:`dateutil.rrule.weekday`]]]: Returns a read-only """Optional[List[Tuple[:class:`int`, :class:`int`]]]: Returns a read-only
list of the N weekdays this event recurs on, or ``None``. list of the N weekdays this event recurs on, or ``None``.
""" """
if self._n_weekdays in (MISSING, None): if self._n_weekdays in (MISSING, None):
@ -186,9 +186,9 @@ class ScheduledEventRecurrenceRule:
Parameters Parameters
---------- ----------
weekdays: Optional[List[:class:`dateutil.rrule.weekday`]] weekdays: Optional[List[:class:`datetime.date`]]
The new weekdays for the event to recur on. The new weekdays for the event to recur on.
n_weekdays: Optional[List[Tuple[:class:`int`, :class:`dateutil.rrule.weekday`]]] n_weekdays: Optional[List[Tuple[:class:`int`, :class:`int`]]]
The new set of specific days within a week for the event to recur on. The new set of specific days within a week for the event to recur on.
month_days: Optional[List[:class:`datetime.date`]] month_days: Optional[List[:class:`datetime.date`]]
The new set of month and month days for the event to recur on. The new set of month and month days for the event to recur on.

Loading…
Cancel
Save