dj_angles.quote_utils ===================== .. py:module:: dj_angles.quote_utils .. autoapi-nested-parse:: Shared utilities for tracking quote state during string parsing. Module Contents --------------- .. py:class:: QuoteTracker Tracks whether we're inside single or double quotes during character-by-character parsing. .. py:attribute:: QUOTE_CHARS :value: ("'", '"') .. py:attribute:: in_single_quote :value: False .. py:attribute:: in_double_quote :value: False .. py:method:: is_quote_char(char: str) -> bool :staticmethod: Return True if the character is a quote character. .. py:method:: update(char: str) -> None Update quote state based on the current character. .. py:property:: inside_quotes :type: bool Return True if currently inside any type of quote. .. py:method:: reset() -> None Reset the quote state.