This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / completer / has_open_quotes

function

IPython.core.completer:has_open_quotes

source: /IPython/core/completer.py:358

Signature

def has_open_quotes(s: str) → str | bool

Summary

Return whether a string has open quotes.

Extended Summary

This simply counts whether the number of quote characters of either type in the string is odd.

Returns

: If there is an open quote, the quote character is returned. Else, return
: False.

Aliases

  • IPython.core.completer.has_open_quotes