"""unicurses re-exports with upstream docstring SyntaxWarnings silenced.

uni-curses 3.1.2 uses ``prints\\sends`` in docstrings, which triggers
SyntaxWarning on Python 3.12+ (invalid ``\\s`` escape).
"""

from __future__ import annotations

import warnings
from typing import Any

with warnings.catch_warnings():
	warnings.filterwarnings(
		"ignore",
		category=SyntaxWarning,
		message=r".*invalid escape sequence.*\\s",
	)
	import unicurses as _unicurses


def __getattr__(name: str) -> Any:
	return getattr(_unicurses, name)


def __dir__() -> list[str]:
	return dir(_unicurses)