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

husseinawala 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 0f0662cc326 remove Literal[local] type hint as it is included in str 
(#49194)
0f0662cc326 is described below

commit 0f0662cc3260368148b25e54f94b9a484e2a28d2
Author: Hussein Awala <[email protected]>
AuthorDate: Mon Apr 14 13:57:22 2025 +0300

    remove Literal[local] type hint as it is included in str (#49194)
---
 airflow-core/src/airflow/utils/timezone.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/airflow-core/src/airflow/utils/timezone.py 
b/airflow-core/src/airflow/utils/timezone.py
index aca3810c548..df2567e03db 100644
--- a/airflow-core/src/airflow/utils/timezone.py
+++ b/airflow-core/src/airflow/utils/timezone.py
@@ -29,7 +29,6 @@ from pendulum.datetime import DateTime
 if TYPE_CHECKING:
     from pendulum.tz.timezone import FixedTimezone, Timezone
 
-    from airflow.typing_compat import Literal
 
 _PENDULUM3 = version.parse(metadata.version("pendulum")).major == 3
 # UTC Timezone as a tzinfo instance. Actual value depends on pendulum version:
@@ -301,9 +300,7 @@ def local_timezone() -> FixedTimezone | Timezone:
     return pendulum.tz.local_timezone()
 
 
-def from_timestamp(
-    timestamp: int | float, tz: str | FixedTimezone | Timezone | 
Literal["local"] = utc
-) -> DateTime:
+def from_timestamp(timestamp: int | float, tz: str | FixedTimezone | Timezone 
= utc) -> DateTime:
     """
     Parse timestamp and return DateTime in a given time zone.
 

Reply via email to