module documentation
(source)

Undocumented

Class ​Compile​Error Exception raised when there is a compile error.
Class ​Error​Info Representation of a single error message.
Class ​Errors Container for compile errors.
Function remove​_path​_prefix If path starts with prefix, return copy of path with the prefix removed. Otherwise, return path. If path is None, return None.
Function report​_internal​_error Report internal error and exit.
Constant allowed​_duplicates Undocumented
Constant T Undocumented
Variable ​Error​Tuple Undocumented
def remove_path_prefix(path, prefix): (source)
If path starts with prefix, return copy of path with the prefix removed. Otherwise, return path. If path is None, return None.
Parameters
path:strUndocumented
prefix:Optional[str]Undocumented
Returns
strUndocumented
def report_internal_error(err, file, line, errors, options, stdout=None, stderr=None): (source)

Report internal error and exit.

This optionally starts pdb or shows a traceback.

Parameters
err:ExceptionUndocumented
file:Optional[str]Undocumented
line:intUndocumented
errors:ErrorsUndocumented
options:OptionsUndocumented
stdout:Optional[TextIO]Undocumented
stderr:Optional[TextIO]Undocumented
allowed_duplicates: list[str] = (source)

Undocumented

Value
['@overload', 'Got:', 'Expected:']

Undocumented

Value
TypeVar('T')
ErrorTuple = (source)

Undocumented