Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent e6a8cba commit 7b510ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions botel/grpc_gate/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ async def PublishSuperPage(self, request, context, db: AsyncSession):
chat_id=request.chat_id,
text=message,
parse_mode="html",
reply_to_message_id=previous_published_messages[0].message_id
if request.reference_original and previous_published_messages
else None,
reply_to_message_id=(
previous_published_messages[0].message_id
if request.reference_original and previous_published_messages
else None
),
)
final_coroutines.append(
create.publish_record(db, page_id=request.id, message_id=new_message.id)
Expand Down
6 changes: 3 additions & 3 deletions botel/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async def wrapper(self, *args, **kwargs):
async with AsyncExitStack() as stack:
managers = []
for i in initializers:
initializer: tuple[
Callable[[Any], AsyncContextManager], tuple
] = getattr(self, i)
initializer: tuple[Callable[[Any], AsyncContextManager], tuple] = (
getattr(self, i)
)
managers.append(
await stack.enter_async_context(initializer[0](*initializer[1]))
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ multidict==6.0.4 ; python_version >= "3.9" and python_version < "3.12"
protobuf==4.23.3 ; python_version >= "3.9" and python_version < "3.12"
pytelegrambotapi==4.7.1 ; python_version >= "3.9" and python_version < "3.12"
requests==2.31.0 ; python_version >= "3.9" and python_version < "3.12"
say-protos @ git+https://github.com/SayIfOrg/say_protos.git@56a4174e39bfe#subdirectory=packages/python ; python_version >= "3.9" and python_version < "3.12"
say-protos @ git+https://github.com/SayIfOrg/say_protos.git@56a4174e39bfe768e0d2275d410c5dce2f0ad938#subdirectory=packages/python ; python_version >= "3.9" and python_version < "3.12"
setuptools==68.0.0 ; python_version >= "3.9" and python_version < "3.12"
six==1.16.0 ; python_version >= "3.9" and python_version < "3.12"
soupsieve==2.4.1 ; python_version >= "3.9" and python_version < "3.12"
Expand Down

0 comments on commit 7b510ba

Please sign in to comment.