FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix typos in docstrings and comments by MsfPablo · Pull Request #5336 · python-telegram-bot/python-telegram-bot · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (5) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion src/telegram/_messageorigin.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser Public License
# along with this program. If not, see [http://www.gnu.org/licenses/].
"""This module contains the classes that represent Telegram MessageOigin."""
"""This module contains the classes that represent Telegram MessageOrigin."""

import datetime as dtm
from typing import ClassVar, Final
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/_poll.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class PollAnswer(TelegramObject):
20.5 as the latter one became optional.

.. versionchanged:: 20.6
Backward compatiblity for changed order of :paramref:`option_ids` and :paramref:`user`
Backward compatibility for changed order of :paramref:`option_ids` and :paramref:`user`
was removed.

Args:
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/_suggestedpost.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class SuggestedPostPrice(TelegramObject):
"""
Desribes the price of a suggested post.
Describes the price of a suggested post.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`currency` and :attr:`amount` are equal.
Expand Down
8 changes: 4 additions & 4 deletions src/telegram/constants.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,12 @@ class BusinessLimit(IntEnum):
:meth:`telegram.Bot.get_user_gifts`.
"""
MIN_STAR_COUNT = 1
""":obj:`int`: Minimum number of Telegram Stars to be transfered. Relevant for
""":obj:`int`: Minimum number of Telegram Stars to be transferred. Relevant for
:paramref:`~telegram.Bot.transfer_business_account_stars.star_count` of
:meth:`telegram.Bot.transfer_business_account_stars`.
"""
MAX_STAR_COUNT = 10000
""":obj:`int`: Maximum number of Telegram Stars to be transfered. Relevant for
""":obj:`int`: Maximum number of Telegram Stars to be transferred. Relevant for
:paramref:`~telegram.Bot.transfer_business_account_stars.star_count` of
:meth:`telegram.Bot.transfer_business_account_stars`.
"""
Expand Down Expand Up @@ -3610,7 +3610,7 @@ class UniqueGiftInfoOrigin(StringEnum):
.. versionadded:: 22.3
"""
TRANSFER = "transfer"
""":obj:`str` gift transfered"""
""":obj:`str` gift transferred"""
UPGRADE = "upgrade"
""":obj:`str` gift upgraded"""

Expand Down Expand Up @@ -3834,7 +3834,7 @@ class InvoiceLimit(IntEnum):
.. versionadded:: 21.8
"""
SUBSCRIPTION_MAX_PRICE = 10000
""":obj:`int`: The maximum price of a subscription created wtih
""":obj:`int`: The maximum price of a subscription created with
:meth:`telegram.Bot.create_invoice_link`.

.. versionadded:: 21.9
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/error.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __init__(self, retry_after: TimePeriod):

@property
def retry_after(self) -> int | dtm.timedelta: # noqa: D102
# Diableing D102 because docstring for `retry_after` is present at the class's level
# Disabling D102 because docstring for `retry_after` is present at the class's level
return get_timedelta_value( # type: ignore[return-value]
self._retry_after, attribute="retry_after"
)
Expand Down

Back | FazBrowse Home | New Git URL