Commit 05cd5e9
authored
fix: replace stale entry in a2a.types.__all__ with actual import name (#902)
- Fix stale `__all__` entry in `src/a2a/types/__init__.py`:
`AuthenticatedExtendedCardNotConfiguredError` does not exist in the
module namespace - the actual import is
`ExtendedAgentCardNotConfiguredError`. This caused `AttributeError` at
runtime on `from a2a.types import *` or any direct reference to the
listed name.
- Enable ruff's
[F822](https://docs.astral.sh/ruff/rules/undefined-export/) rule for
`__init__.py` files by adding `preview = true` and
`explicit-preview-rules = true` under `[tool.ruff.lint]`. This prevents
stale `__all__` entries from going undetected in the future, without
introducing any new preview-only rules.1 parent 4586c3e commit 05cd5e9
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments