refactor: enforce BasedPyright strict type checking (#5158)

This commit is contained in:
chengyongru
2026-07-29 21:37:11 +08:00
committed by GitHub
parent e703481755
commit 757ad9c764
166 changed files with 4728 additions and 2621 deletions
+2
View File
@@ -1217,6 +1217,7 @@ def test_channels_login_uses_discovered_plugin_class(monkeypatch):
async def login(self, force: bool = False) -> bool:
seen["force"] = force
seen["config"] = self.config
seen["bus"] = self.bus
return True
monkeypatch.setattr("nanobot.config.loader.load_config", lambda config_path=None: Config())
@@ -1229,6 +1230,7 @@ def test_channels_login_uses_discovered_plugin_class(monkeypatch):
assert result.exit_code == 0
assert seen["force"] is True
assert isinstance(seen["bus"], MessageBus)
def test_channels_login_sets_custom_config_path(monkeypatch, tmp_path):