Files
nanobot/nanobot/channels/__init__.py
T
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00

19 lines
434 B
Python

from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from nanobot.channels.base import BaseChannel
def __getattr__(name: str) -> type[BaseChannel]:
if name != "BaseChannel":
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
from nanobot.channels.base import BaseChannel
globals()[name] = BaseChannel
return BaseChannel
__all__ = ["BaseChannel"]