Skip to content

Commit

Permalink
Try to fix smth for docker (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Jun 26, 2023
1 parent b667010 commit 4a0e4e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions BotHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

from __future__ import annotations

import asyncio
import datetime
import logging
Expand Down
6 changes: 4 additions & 2 deletions QueueHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

from __future__ import annotations

import base64
import datetime
import gc
Expand All @@ -37,7 +39,7 @@


def get_container_from_queue(request_response_queue: multiprocessing.Queue, lock: multiprocessing.Lock,
container_id: int):
container_id: int) -> RequestResponseContainer.RequestResponseContainer | None:
"""
Retrieves request_response_container from queue by ID without removing it
:param request_response_queue: multiprocessing Queue to get container from
Expand All @@ -46,7 +48,7 @@ def get_container_from_queue(request_response_queue: multiprocessing.Queue, lock
:return: RequestResponseContainer or None if not exists
"""

def get_container_from_queue_():
def get_container_from_queue_() -> RequestResponseContainer.RequestResponseContainer | None:
# Convert entire queue to list
queue_list = queue_to_list(request_response_queue)

Expand Down

0 comments on commit 4a0e4e7

Please sign in to comment.