From 6acc2068dec10b2ed2ef2e636af7846d172d323c Mon Sep 17 00:00:00 2001 From: walker Date: Sat, 29 Oct 2022 20:14:50 +0400 Subject: [PATCH] fix for prev --- olgram/utils/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/olgram/utils/permissions.py b/olgram/utils/permissions.py index 18209b2..21954b7 100644 --- a/olgram/utils/permissions.py +++ b/olgram/utils/permissions.py @@ -1,7 +1,7 @@ import aiogram.types as types from aiogram.dispatcher.handler import CancelHandler, current_handler from aiogram.dispatcher.middlewares import BaseMiddleware -from collections.abc import Container +import typing as ty from locales.locale import _ @@ -20,7 +20,7 @@ def public(): class AccessMiddleware(BaseMiddleware): - def __init__(self, access_chat_ids: Container[int]): + def __init__(self, access_chat_ids: ty.Iterable[int]): self._access_chat_ids = access_chat_ids super(AccessMiddleware, self).__init__()