docs: def console_delete(con: tcod.console.Console) -> None:
      """Closes the window if `con` is the root console.
  
      libtcod objects are automatically garbage collected once they go out of
      scope.
  
      This function exists for backwards compatibility.
  
      .. deprecated:: 9.3
          This function is not needed for normal :any:`tcod.console.Console`'s.
          The root console should be used in a with statement instead to ensure
          that it closes.
      """
      con = _console(con)
      if con == ffi.NULL:
          lib.TCOD_console_delete(con)
          warnings.warn(
              "Instead of this call you should use a with statement to ensure"
              " the root console closes, for example:"
              "\n    with tcod.console_init_root(...) as root_console:"
              "\n        ...",
              DeprecationWarning,
              stacklevel=2,
          )
      else:
          warnings.warn(
              "You no longer need to make this call, "
              "Console's are deleted when they go out of scope.",
              DeprecationWarning,
              stacklevel=2,
          )