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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user