mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
Try prevent to attr-defined mypy error
This commit is contained in:
parent
8e5cb067df
commit
690223f4e0
5 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ from aiogram.api.methods import GetMe
|
|||
try:
|
||||
from asynctest import CoroutineMock, patch
|
||||
except ImportError:
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch # type: ignore
|
||||
|
||||
|
||||
class TestBaseBot:
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from aiogram.api.types import InputFile
|
|||
try:
|
||||
from asynctest import CoroutineMock, patch
|
||||
except ImportError:
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch # type: ignore
|
||||
|
||||
|
||||
class BareInputFile(InputFile):
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ from aiogram.utils.mixins import DataMixin
|
|||
try:
|
||||
from asynctest import CoroutineMock, patch
|
||||
except ImportError:
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch
|
||||
from unittest.mock import AsyncMock as CoroutineMock, patch # type: ignore
|
||||
|
||||
|
||||
class CustomSession(BaseSession):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue