Commit becf1a8
committed
Fix py3.9 mypy error in
On Python 3.9 ``importlib_metadata`` returns Optional[PackageMetadata]
instead of PackageMetadata, this leads to mypy complaining that
Optional[...] is not indexable and does not have ``get_all``. Instead,
let's just cast it for ourselves.__init__ around PackageMetadata
1 parent e23919e commit becf1a8
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments