Skip to content

Commit 2be0bcf

Browse files
committed
python <3.9 errors
1 parent fc8585e commit 2be0bcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ollama/_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from base64 import b64decode, b64encode
33
from pathlib import Path
44
from datetime import datetime
5-
from typing import Any, Mapping, Optional, Union, Sequence
5+
from typing import Any, Mapping, Optional, Union, Sequence, Dict
66

77
from pydantic.json_schema import JsonSchemaValue
88
from typing_extensions import Annotated, Literal
@@ -413,8 +413,8 @@ def serialize_model(self, nxt):
413413
"""
414414
quantize: Optional[str] = None
415415
from_: Optional[str] = None
416-
files: Optional[dict[str, str]] = None
417-
adapters: Optional[dict[str, str]] = None
416+
files: Optional[Dict[str, str]] = None
417+
adapters: Optional[Dict[str, str]] = None
418418
template: Optional[str] = None
419419
license: Optional[Union[str, list[str]]] = None
420420
system: Optional[str] = None

0 commit comments

Comments
 (0)