Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Oct 25, 2023
1 parent cd2680b commit 30d0c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brewtils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ def _parameter_type_hint(method, cmd_parameter):
if sys.version_info.major == 3 and sys.version_info.minor >= 8:
choice_types = None
for arg_choice in get_args(arg.annotation):
if choice_types == None:
if choice_types is None:
choice_types = type(arg_choice)
elif type(arg_choice) != choice_types:
elif type(arg_choice) is not choice_types:
choice_types = None
break

Expand Down

0 comments on commit 30d0c27

Please sign in to comment.