diff --git a/backend/src/backend/routers/rooms.py b/backend/src/backend/routers/rooms.py index a4fa8e33..5af55192 100644 --- a/backend/src/backend/routers/rooms.py +++ b/backend/src/backend/routers/rooms.py @@ -7,7 +7,7 @@ from collections.abc import AsyncGenerator from typing import Any from typing import List -import asyncpg +import asyncpg # type: ignore[import-untyped] from fastapi import APIRouter from fastapi import HTTPException from fastapi import Query diff --git a/backend/src/backend/services/bookings.py b/backend/src/backend/services/bookings.py index 758d8331..7645a735 100644 --- a/backend/src/backend/services/bookings.py +++ b/backend/src/backend/services/bookings.py @@ -10,7 +10,7 @@ from typing import Callable from typing import TypedDict from typing import Unpack -import asyncpg +import asyncpg # type: ignore[import-untyped] from sqlalchemy import and_ from sqlalchemy import delete from sqlalchemy import func diff --git a/backend/tests/services/test_bookings.py b/backend/tests/services/test_bookings.py index a8f389f4..685ef8b6 100644 --- a/backend/tests/services/test_bookings.py +++ b/backend/tests/services/test_bookings.py @@ -23,7 +23,7 @@ from unittest.mock import MagicMock from unittest.mock import patch import pytest -from dateutil.parser import isoparse +from dateutil.parser import isoparse # type: ignore[import-untyped] from sqlalchemy import delete from sqlalchemy import update from sqlalchemy.exc import NoResultFound @@ -607,7 +607,7 @@ async def test_event_publisher_called( booking_create: BookingCreate, sample_booking: Booking, updated_booking: Booking, - update_booking_data: BookingUpdateData, + booking_update_data: BookingUpdateData, sample_room: Room, ) -> None: """Test that event_publisher is called for booking CUD operations. @@ -620,7 +620,7 @@ async def test_event_publisher_called( booking_create: The BookingCreate object from conftest. sample_booking: The sample Booking object from conftest. updated_booking: The updated Booking object from conftest. - update_booking_data: The booking update data dict from conftest. + booking_update_data: The booking update data dict from conftest. sample_room: The sample Room object from conftest. Asserts: @@ -699,7 +699,7 @@ async def test_event_publisher_called( result = await update_booking( # type: ignore async_session, booking_id, - **update_booking_data, + **booking_update_data, event_publisher=event_publisher, ) event_publisher.assert_awaited()