Skip to content

Commit

Permalink
Make TelegramObject Immutable (#3249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Dec 15, 2022
1 parent ff645c6 commit b11a0c7
Show file tree
Hide file tree
Showing 164 changed files with 2,155 additions and 979 deletions.
2 changes: 1 addition & 1 deletion docs/source/telegram.telegramobject.rst
Expand Up @@ -4,4 +4,4 @@ telegram.TelegramObject
.. autoclass:: telegram.TelegramObject
:members:
:show-inheritance:
:special-members: __repr__, __getitem__, __eq__, __hash__, __setstate__, __getstate__, __deepcopy__
:special-members: __repr__, __getitem__, __eq__, __hash__, __setstate__, __getstate__, __deepcopy__, __setattr__, __delattr__
8 changes: 7 additions & 1 deletion docs/substitutions/global.rst
Expand Up @@ -40,4 +40,10 @@

.. |disable_notification| replace:: Sends the message silently. Users will receive a notification with no sound.

.. |reply_to_msg_id| replace:: If the message is a reply, ID of the original message.
.. |reply_to_msg_id| replace:: If the message is a reply, ID of the original message.

.. |sequenceclassargs| replace:: Accepts any :class:`collections.abc.Sequence` as input instead of just a list. The input is converted to a tuple.

.. |tupleclassattrs| replace:: This attribute is now an immutable tuple.

.. |alwaystuple| replace:: This attribute is now always a tuple, that may be empty.
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -21,6 +21,7 @@ disable = duplicate-code,too-many-arguments,too-many-public-methods,too-few-publ
missing-class-docstring,too-many-locals,too-many-lines,too-many-branches,
too-many-statements
enable=useless-suppression ; Warns about unused pylint ignores
exclude-protected=_unfrozen

[tool:pytest]
testpaths = tests
Expand Down

0 comments on commit b11a0c7

Please sign in to comment.