Skip to content

Commit

Permalink
ignore type error for now
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Aug 26, 2024
1 parent 39c7d45 commit 26d1120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import pydantic

def is_pydantic_type(type_: Any) -> bool:
if get_origin(type_) is Annotated:
if get_origin(type_) is Annotated: # type: ignore
return is_pydantic_type(get_args(type_)[0])
return type_.__module__.startswith("pydantic") and not lenient_issubclass(
type_, pydantic.BaseModel
Expand Down

0 comments on commit 26d1120

Please sign in to comment.