{ } Raw JSON

bundles / IPython 9.13.0 / IPython / core / completer / has_open_quotes

function

IPython.core.completer:has_open_quotes

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

Signature

def   has_open_quotes ( s : str )  →  Union[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