Commit 3661aa8
committed
Ignore name redef warnings on ImportError
When defining missing optional dependencies from fastapi, mypy issues
errors of the following form: 'Name "FastAPI" already defined
(possibly by an import) [no-redef]'. This commit fixes such mypy errors.1 parent 95523a3 commit 3661aa8
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
0 commit comments