original_docstring: Stop hinting when hinting mode was left.
docstring: Stop hinting when hinting mode was left.
docstring_tokens: Stop hinting when hinting mode was left .
code: def on_mode_left(self, mode: usertypes.KeyMode) -> None:
          """Stop hinting when hinting mode was left."""
          if mode != usertypes.KeyMode.hint or self._context is None:
              # We have one HintManager per tab, so when this gets called,
              # self._context might be None, because the current tab is not
              # hinting.
              return
          self._cleanup()
code_tokens: def on_mode_left ( self , mode : usertypes . KeyMode ) -> None : if mode != usertypes . KeyMode . hint or self . _context is None : return self . _cleanup ( )
short_docstring: Stop hinting when hinting mode was left.
short_docstring_tokens: Stop hinting when hinting mode was left .
comment: """Stop hinting when hinting mode was left."""$SEP$# We have one HintManager per tab, so when this gets called,$SEP$# self._context might be None, because the current tab is not$SEP$# hinting.