Commit b5c0b85
committed
config: fix a type error in pyright due to different narrowing rules
For some reason pyright infers the type of `essential_plugins` and
`default_plugins` as `tuple[Literal[...], ...]` even if they are
explicitly annotated as `tuple[str, ...]`. This then causes an error in
the `builtin_plugins.add` calls.
Replace with one-shot initialization appeases pyright and is nicer
regardless.1 parent 0e734c7 commit b5c0b85
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
0 commit comments