-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Updated files to PEP8, documentation, format => f-string, refactor a couple of functions #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Miscopied "Stopped" instead of "Started".
telebot/__init__.py
Outdated
| class Handler: | ||
| """ | ||
| Class for (next step|reply) handlers | ||
| Class for (next steplogger.debug|reply) handlers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why "steplogger.debug"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't see it
|
|
||
| self.token = token | ||
| self.update_listener = [] | ||
| self.update_listener = list() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason (here and below)? Nothing in PEP8 about it?
And here they say that it is slower: https://stackoverflow.com/questions/2972212/creating-an-empty-list-in-python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps not really the best change. It just reads better.
telebot/types.py
Outdated
| "url" : "<a href=\"{url}\">{text}</a>", | ||
| "text_link": "<a href=\"{url}\">{text}</a>" | ||
| } | ||
| _subs = dict(bold="<b>{text}</b>", italic="<i>{text}</i>", pre="<pre>{text}</pre>", code="<code>{text}</code>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single item per single line pls...
|
Итого. Просьба, если есть возможность:
PS. Благодаря уважаемому eternnoir у меня появились ключи от сейфа, можно попробовать освежить этот неплохой продукт. :) |
|
:/ |
|
Hm. 16 more edited files instead of clearing previous ones. Me personally do not like the formatting style you bring. I did not like the previous one, I do not like new one even more. So I cannot accept this request, sorry. May be someone else did it. I manually bring all (as far as I found them in 22 files) valuable updates to the pull request #728. That's all I can do for it now. |
|
Ok |
|
No need to close the issue. I'm not the one with final decisions. It was my personal oppinion, owner may have another one. |

Uh oh!
There was an error while loading. Please reload this page.