
                         >    d Z ddlmZ ddlmZ ddlmZ ddlmZ d Zy)z$Flags for gcloud ml vision commands.    )absolute_import)division)unicode_literals)arg_parsersc                     	 t        |       S # t        $ rd | j                  d      }t        |      dk(  r/	 t        |d         t        |d         z  cY S # t        $ r Y nw xY wt	        j
                  d      w xY w)z2A type function to be used to parse aspect ratios.:   r      zmEach aspect ratio must either be specified as a decimal (ex. 1.333) or as a ratio of width to height (ex 4:3))float
ValueErrorsplitlenr   ArgumentTypeError)valuepartss     1lib/googlecloudsdk/command_lib/ml/vision/flags.pyAspectRatioTyper      s    5<	 
5KKE
5zQU1XuQx00  
'
'	45 5
5s,   
 (A:AA:	A!A: A!!A:N)__doc__
__future__r   r   r   googlecloudsdk.callioper   r        r   <module>r      s     + &  ' /5r   