Skip to content

Fix basedpyright provider-signature cascade - #255

Merged
tmgbedu merged 1 commit into
mainfrom
fix/pyright-provider-signatures
Sep 26, 2026
Merged

tmgbedu merged 1 commit into
mainfrom
fix/pyright-provider-signatures

Conversation

@tmgbedu

@tmgbedu tmgbedu commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Root-level fix in support/providers/provider.py for the 8 reportArgumentType errors caused by the Provider signatures after #241. No call-site changes.

  • provider_key: str = "" (was str | None = None); key is inferred from the class name when falsy. Fixes 5x merge_config_from(..., self.provider_key) (ai, fastapi, logging, database, vite).
  • publishes(resources: dict[str | Path, str]) (was dict[str, Any]). Fixes 3x dict[Path, str] call sites (logging, database, storage provider).

Behaviour change (edge case)

A subclass that explicitly sets provider_key = "" now gets an inferred key instead of keeping "". No provider in the codebase does this. Covered by a new test.

Verification

Provider.provider_key is now always str (empty default, inferred when
falsy) so merge_config_from receives a str, and publishes accepts
str | Path source keys.
@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tmgbedu
tmgbedu merged commit 6376f3e into main Sep 26, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant