mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Migrate to hatchling (#1095)
* Migrate to hatchling instead of poetry, ruff instead of flake8 * Migrate to hatchling instead of poetry, ruff instead of flake8 * Update tests suite * venv? * -m venv? * Change dependencies * Remove venv * Change mypy config * Added changelog * Mark uvloop incompatible with pypy * Update release script * Use internal caching for dependencies * Re-disable cov branches * Added contributing guide
This commit is contained in:
parent
04ccb390d5
commit
f4ce4431f9
58 changed files with 799 additions and 3001 deletions
|
|
@ -88,7 +88,8 @@ class BaseRequestHandler(ABC):
|
|||
) -> None:
|
||||
"""
|
||||
:param dispatcher: instance of :class:`aiogram.dispatcher.dispatcher.Dispatcher`
|
||||
:param handle_in_background: immediately respond to the Telegram instead of waiting end of handler process
|
||||
:param handle_in_background: immediately respond to the Telegram instead of
|
||||
waiting end of handler process
|
||||
"""
|
||||
self.dispatcher = dispatcher
|
||||
self.handle_in_background = handle_in_background
|
||||
|
|
@ -166,7 +167,8 @@ class SimpleRequestHandler(BaseRequestHandler):
|
|||
) -> None:
|
||||
"""
|
||||
:param dispatcher: instance of :class:`aiogram.dispatcher.dispatcher.Dispatcher`
|
||||
:param handle_in_background: immediately respond to the Telegram instead of waiting end of handler process
|
||||
:param handle_in_background: immediately respond to the Telegram instead of
|
||||
waiting end of handler process
|
||||
:param bot: instance of :class:`aiogram.client.bot.Bot`
|
||||
"""
|
||||
super().__init__(dispatcher=dispatcher, handle_in_background=handle_in_background, **data)
|
||||
|
|
@ -184,7 +186,8 @@ class SimpleRequestHandler(BaseRequestHandler):
|
|||
|
||||
class TokenBasedRequestHandler(BaseRequestHandler):
|
||||
"""
|
||||
Handler that supports multiple bots, the context will be resolved from path variable 'bot_token'
|
||||
Handler that supports multiple bots, the context will be resolved
|
||||
from path variable 'bot_token'
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
|
@ -196,7 +199,8 @@ class TokenBasedRequestHandler(BaseRequestHandler):
|
|||
) -> None:
|
||||
"""
|
||||
:param dispatcher: instance of :class:`aiogram.dispatcher.dispatcher.Dispatcher`
|
||||
:param handle_in_background: immediately respond to the Telegram instead of waiting end of handler process
|
||||
:param handle_in_background: immediately respond to the Telegram instead of
|
||||
waiting end of handler process
|
||||
:param bot_settings: kwargs that will be passed to new Bot instance
|
||||
"""
|
||||
super().__init__(dispatcher=dispatcher, handle_in_background=handle_in_background, **data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue