File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -705,9 +705,9 @@ def get_click_type(
705705 elif parameter_info .parser is not None :
706706 return click .types .FuncParamType (parameter_info .parser )
707707
708- elif isinstance ( annotation , str ) :
708+ elif annotation is str :
709709 return click .STRING
710- elif isinstance ( annotation , int ) :
710+ elif annotation is int :
711711 if parameter_info .min is not None or parameter_info .max is not None :
712712 min_ = None
713713 max_ = None
@@ -718,7 +718,7 @@ def get_click_type(
718718 return click .IntRange (min = min_ , max = max_ , clamp = parameter_info .clamp )
719719 else :
720720 return click .INT
721- elif isinstance ( annotation , float ) :
721+ elif annotation is float :
722722 if parameter_info .min is not None or parameter_info .max is not None :
723723 return click .FloatRange (
724724 min = parameter_info .min ,
@@ -727,7 +727,7 @@ def get_click_type(
727727 )
728728 else :
729729 return click .FLOAT
730- elif isinstance ( annotation , bool ) :
730+ elif annotation is bool :
731731 return click .BOOL
732732 elif annotation == UUID :
733733 return click .UUID
You can’t perform that action at this time.
0 commit comments