Fix: Add __future__ annotations import to qwen3_next.py for Python 3.9 compatibility (#533)

* Fix Python 3.8/3.9 compatibility in qwen3_next.py

Add missing `from __future__ import annotations` import to fix
Python 3.8/3.9 compatibility.

The `|` union syntax (PEP 604) requires Python 3.10+ or the
__future__ import. This change maintains the declared
python_requires>=3.8 compatibility.

Fixes compatibility with macOS system Python (3.9.6).

* format

---------

Co-authored-by: Awni Hannun <[email protected]>
This commit is contained in:
mzfive
2025-10-07 11:28:36 -07:00
committed by GitHub
co-authored by Awni Hannun
parent 49919e8563
commit abb185cb66
+2
View File
@@ -1,5 +1,7 @@
# Copyright © 2025 Apple Inc.
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Tuple, Union