Skip to content

Conversation

@harshil21
Copy link
Member

Closes #4127 and https://t.me/pythontelegrambottalk/246581 and https://t.me/pythontelegrambotgroup/715736.

The reason why this happened is because:

  1. Updater is inheriting from typing.AsyncContextManager which defines a __dict__ on < 3.13, and that's why there's no error.

  2. The tests don't catch that because they assume there will be no __dict__ leaving it to Python to catch the error for us (we previously used to check for __dict__ presence)

We still don't fully support Python 3.13, and support for that will be added in a later PR, or once it reaches beta.

Thus, the patch is untested.

@Bibo-Joshi Bibo-Joshi merged commit bb6c856 into master Feb 24, 2024
@Bibo-Joshi Bibo-Joshi deleted the fix-updater-slots branch February 24, 2024 11:31
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2024
@Bibo-Joshi Bibo-Joshi added 🔌 bug pr description: bug and removed bug 🐛 labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 bug pr description: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'Updater' object has no attribute '_Updater__polling_cleanup_cb' and no __dict__ for setting new attributes

3 participants