Skip to content

Commit

Permalink
[update] minor performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Aug 15, 2023
1 parent 45c4c27 commit 54443e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cain/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def retrieve_type(datatype: typing.Union[typing.Type[model.Datatype],

datatype = typing.get_origin(datatype) or datatype

if datatype == typing.Union:
if datatype is typing.Union:
return Union, type_args

if datatype is None or datatype is NONE_TYPE:
Expand Down

0 comments on commit 54443e1

Please sign in to comment.