Skip to content

Commit 4606e1f

Browse files
add type hints
1 parent b3d0076 commit 4606e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/common-library/tests/test_pydantic_fields_extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Literal
1+
from typing import Any, Callable, Literal
22

33
import pytest
44
from common_library.pydantic_fields_extension import get_type, is_literal, is_nullable
@@ -68,5 +68,5 @@ class MyModel(BaseModel):
6868
(is_nullable, False, "e"),
6969
],
7070
)
71-
def test_field_fn(fn, expected, name):
71+
def test_field_fn(fn: Callable[[Any], Any], expected: Any, name: str):
7272
assert expected == fn(MyModel.model_fields[name])

0 commit comments

Comments
 (0)