Files
kefu/wechat_rpa/.venv/Lib/site-packages/mss/factory.py
T
2026-09-21 10:34:06 +08:00

23 lines
628 B
Python

# This is part of the MSS Python's module.
# Source: https://github.com/BoboTiG/python-mss.
import warnings
from typing import Any
from mss.base import MSS
def mss(**kwargs: Any) -> MSS:
"""Create an :class:`mss.MSS` instance for the current platform.
.. deprecated:: 10.2.0
Use :class:`mss.MSS` directly.
"""
# TODO(jholveck): #493 Remove compatibility deprecation path once 10.x transition period ends.
warnings.warn(
"mss.mss is deprecated and will be removed in a future release; use mss.MSS instead",
DeprecationWarning,
stacklevel=2,
)
return MSS(**kwargs)