Skip to content

Commit

Permalink
fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Sep 3, 2021
1 parent f1bbabd commit bfc0168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def is_union_origin(tp: Type[Any]) -> bool:
import typing

def is_union_origin(origin: Type[Any]) -> bool:
return origin is Union or origin is types.UnionType # type: ignore # noqa: E721
return origin is Union or origin is types.UnionType # noqa: E721

WithArgsTypes = (typing._GenericAlias, types.GenericAlias, types.UnionType) # type: ignore
WithArgsTypes = (typing._GenericAlias, types.GenericAlias, types.UnionType)


if TYPE_CHECKING:
Expand Down

0 comments on commit bfc0168

Please sign in to comment.