Utilities

This is just internal stuff for now.

Declare

mdiocre.utils.declare(var_, type_)

A substitute for static type-checking.

Parameters
  • var – The contents to check.

  • type (class) – A class type to check for.

Color Checking

Really just a helper function for Logger.

Remove Outer Quotes

mdiocre.utils.remove_inner_outer_quotes(string)

Remove any quotes around the text, with additional checking

Parameters

string (string) – Text with quotes.

Returns

Text with removed quotes. Raises SyntaxError when there is no matching quotes.

Logger