Add future import for Py < 3.10 (#35666)

* Add future import for Py < 3.10

* make fixup

* Same issue in convert_olmo2_weights_to_hf.py
This commit is contained in:
Matt 2025-01-15 12:45:43 +00:00 committed by GitHub
parent 09d5f76274
commit 615bf9c5e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import annotations
import asyncio
from queue import Queue
from typing import TYPE_CHECKING, Optional

View File

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import annotations
import argparse
import gc
import json