This is an automated email from the ASF dual-hosted git repository.

shahar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e2b1c056e5f fix mypy type errors in test_pool.py (#56801)
e2b1c056e5f is described below

commit e2b1c056e5f79812e6f2c892348a9cad5825e19a
Author: rich7420 <[email protected]>
AuthorDate: Sat Oct 18 20:37:36 2025 +0800

    fix mypy type errors in test_pool.py (#56801)
    
    Co-authored-by: Shahar Epstein <[email protected]>
---
 airflow-core/tests/unit/models/test_pool.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/airflow-core/tests/unit/models/test_pool.py 
b/airflow-core/tests/unit/models/test_pool.py
index efb4ac63fcf..469e8e0faba 100644
--- a/airflow-core/tests/unit/models/test_pool.py
+++ b/airflow-core/tests/unit/models/test_pool.py
@@ -19,10 +19,10 @@ from __future__ import annotations
 
 from typing import TYPE_CHECKING
 
+import pendulum
 import pytest
 
 from airflow import settings
-from airflow._shared.timezones import timezone
 from airflow.exceptions import AirflowException, PoolNotFound
 from airflow.models.dag_version import DagVersion
 from airflow.models.pool import Pool
@@ -39,12 +39,13 @@ from tests_common.test_utils.db import (
 )
 
 if TYPE_CHECKING:
+    from sqlalchemy.orm import Session
+
     from airflow.models.team import Team
-    from airflow.settings import Session
 
 pytestmark = pytest.mark.db_test
 
-DEFAULT_DATE = timezone.datetime(2016, 1, 1)
+DEFAULT_DATE = pendulum.datetime(2016, 1, 1, tz="UTC")
 
 
 class TestPool:

Reply via email to