Fixed ruff and mypy lint issues.
This commit is contained in:
+24
-34
@@ -110,57 +110,47 @@ from .routes import (
|
||||
from .storage import ModuleStorage, StorageError
|
||||
|
||||
__all__ = [
|
||||
# Events.
|
||||
"ChatEvent",
|
||||
"Event",
|
||||
"EventContext",
|
||||
"EventHandler",
|
||||
"EventType",
|
||||
"NameChangedEvent",
|
||||
"StreamStartedEvent",
|
||||
"StreamStoppedEvent",
|
||||
"StreamTitleUpdatedEvent",
|
||||
"UserJoinedEvent",
|
||||
"UserPartedEvent",
|
||||
"VisibilityUpdateEvent",
|
||||
# Commands.
|
||||
"CommandContext",
|
||||
"CommandEvent",
|
||||
"CommandHandler",
|
||||
"CommandInfo",
|
||||
"on_command",
|
||||
# Routes.
|
||||
"RouteContext",
|
||||
"RouteHandler",
|
||||
"RouteInfo",
|
||||
"on_route",
|
||||
# Lifecycle.
|
||||
"Event",
|
||||
"EventContext",
|
||||
"EventHandler",
|
||||
"EventType",
|
||||
"ExternalAction",
|
||||
"HttpClient",
|
||||
"LifecycleHandler",
|
||||
"on_event",
|
||||
"on_setup",
|
||||
"on_teardown",
|
||||
# Context.
|
||||
"ModuleContext",
|
||||
# Module-scoped service wrappers.
|
||||
"ModuleCommands",
|
||||
"ModuleConfig",
|
||||
"ModuleContext",
|
||||
"ModuleEvents",
|
||||
"ModuleRoutes",
|
||||
# Config.
|
||||
"ModuleConfig",
|
||||
# Storage.
|
||||
"ModuleStorage",
|
||||
"StorageError",
|
||||
# HTTP.
|
||||
"HttpClient",
|
||||
# Owncast.
|
||||
"ExternalAction",
|
||||
"NameChangedEvent",
|
||||
"OwncastAdminClient",
|
||||
"OwncastClient",
|
||||
"OwncastError",
|
||||
"Priority",
|
||||
"RouteContext",
|
||||
"RouteHandler",
|
||||
"RouteInfo",
|
||||
"SocialHandle",
|
||||
"StorageError",
|
||||
"StreamKey",
|
||||
"StreamStartedEvent",
|
||||
"StreamStatus",
|
||||
"StreamStoppedEvent",
|
||||
"StreamTitleUpdatedEvent",
|
||||
"User",
|
||||
"UserJoinedEvent",
|
||||
"UserPartedEvent",
|
||||
"VideoVariant",
|
||||
"VisibilityUpdateEvent",
|
||||
"on_command",
|
||||
"on_event",
|
||||
"on_route",
|
||||
"on_setup",
|
||||
"on_teardown",
|
||||
]
|
||||
|
||||
@@ -175,7 +175,8 @@ class ModuleStorage:
|
||||
|
||||
:param sql: SELECT statement.
|
||||
:param parameters: Query parameters.
|
||||
:return: List of rows as sqlite3.Row objects (support both index and key access).
|
||||
:return: List of rows as sqlite3.Row objects
|
||||
(support both index and key access).
|
||||
:raises StorageError: If execution fails.
|
||||
"""
|
||||
async with self._connection() as conn:
|
||||
|
||||
@@ -19,15 +19,12 @@ from .events import EventDispatcher, EventRegistry, ModuleEvents
|
||||
from .routes import ModuleRoutes, RouteDispatcher, RouteRegistry
|
||||
|
||||
__all__ = [
|
||||
# Commands.
|
||||
"CommandDispatcher",
|
||||
"CommandRegistry",
|
||||
"ModuleCommands",
|
||||
# Events.
|
||||
"EventDispatcher",
|
||||
"EventRegistry",
|
||||
"ModuleCommands",
|
||||
"ModuleEvents",
|
||||
# Routes.
|
||||
"ModuleRoutes",
|
||||
"RouteDispatcher",
|
||||
"RouteRegistry",
|
||||
|
||||
@@ -55,6 +55,7 @@ python_version = "3.14"
|
||||
strict = true
|
||||
warn_unreachable = true
|
||||
explicit_package_bases = true
|
||||
exclude = ["tests/"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
|
||||
Reference in New Issue
Block a user