def check_complete(self, code: str) -> Tuple[(str, str)]:
    "Return whether a block of code is ready to execute, or should be continued\n\n        Parameters\n        ----------\n        code : string\n            Python input code, which can be multiline.\n\n        Returns\n        -------\n        status : str\n            One of 'complete', 'incomplete', or 'invalid' if source is not a\n            prefix of valid code.\n        indent : str\n            When status is 'incomplete', this is some whitespace to insert on\n            the next line of the prompt.\n        "
    (status, nspaces) = self.input_transformer_manager.check_complete(code)
    return (status, (' ' * (nspaces or 0)))
Return whether a block of code is ready to execute, or should be continued

Parameters
----------
code : string
    Python input code, which can be multiline.

Returns
-------
status : str
    One of 'complete', 'incomplete', or 'invalid' if source is not a
    prefix of valid code.
indent : str
    When status is 'incomplete', this is some whitespace to insert on
    the next line of the prompt.
def check_complete(self, code: str) -> Tuple[(str, str)]:
    "Return whether a block of code is ready to execute, or should be continued\n\n        Parameters\n        ----------\n        code : string\n            Python input code, which can be multiline.\n\n        Returns\n        -------\n        status : str\n            One of 'complete', 'incomplete', or 'invalid' if source is not a\n            prefix of valid code.\n        indent : str\n            When status is 'incomplete', this is some whitespace to insert on\n            the next line of the prompt.\n        "
    (status, nspaces) = self.input_transformer_manager.check_complete(code)
    return (status, (' ' * (nspaces or 0)))