1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""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)