Skip to content

Commit

Permalink
fix: list
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Apr 29, 2024
1 parent 503904a commit aa0f429
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_simple_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import List
from __future__ import annotations

from instructor.dsl import is_simple_type, Partial
from pydantic import BaseModel

Expand Down Expand Up @@ -62,6 +63,6 @@ def test_iterable_not_simple():


def test_list_is_simple():
new_type = List[int]
new_type = list[int]

assert is_simple_type(new_type), "Failed for type: " + str(new_type)

0 comments on commit aa0f429

Please sign in to comment.