original_docstring: Get the hinting mode to use based on a mode argument.
docstring: Get the hinting mode to use based on a mode argument.
docstring_tokens: Get the hinting mode to use based on a mode argument .
code: def _get_hint_mode(self, mode: Optional[str]) -> str:
          """Get the hinting mode to use based on a mode argument."""
          if mode is None:
              return config.val.hints.mode
  
          opt = config.instance.get_opt('hints.mode')
          try:
              opt.typ.to_py(mode)
          except configexc.ValidationError as e:
              raise cmdutils.CommandError("Invalid mode: {}".format(e))
          return mode
code_tokens: def _get_hint_mode ( self , mode : Optional [ str ] ) -> str : if mode is None : return config . val . hints . mode opt = config . instance . get_opt ( 'hints.mode' ) try : opt . typ . to_py ( mode ) except configexc . ValidationError as e : raise cmdutils . CommandError ( "Invalid mode: {}" . format ( e ) ) return mode
short_docstring: Get the hinting mode to use based on a mode argument.
short_docstring_tokens: Get the hinting mode to use based on a mode argument .
comment: """Get the hinting mode to use based on a mode argument."""