Skip to content

Commit

Permalink
use List[int] from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkay committed Jan 26, 2024
1 parent ee5a19b commit 840cadc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_collect_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ class ProviderSchema(DataBagSchema):
(
(dedent("""Foo2: int=1"""), "Foo2"),
(dedent("""Bar: str='baz'"""), "Bar"),
(dedent("""Baz: list=[1,2,3]"""), "Baz"),
(dedent("""
from typing import List
Baz: List[int]=[1,2,3]"""), "Baz"),
),
)
def test_get_schema_from_module_wrong_type(tmp_path, schema_source, schema_name):
Expand Down

0 comments on commit 840cadc

Please sign in to comment.