Skip to content

Commit

Permalink
Fix is_none_type
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed May 23, 2023
1 parent c009124 commit 989eecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def is_none_type(type_: Any) -> bool:

def is_none_type(type_: Any) -> bool:
for none_type in NONE_TYPES:
if type_ is none_type:
if type_ == none_type:
return True
return False

Expand Down

0 comments on commit 989eecb

Please sign in to comment.