Commit 4501cb4
committed
Fix use of mypy while maintaining pyright compatibility
In #72 I fixed pyright use but broke pyright.
The long term fix is probably to have mypy and pyright run against src/ and tests/ in CI.
In the short term I have tested this against my own repository (https://github.com/adamtheturtle/sphinx-notionbuilder).
The underlying issue is that mypy treats `Decorator = Callable[[F], F]` differently to how pyright does.
mypy doesn't like parameterized type aliases while pyright required that the type alias was parameterized.1 parent 56105d2 commit 4501cb4
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| |||
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
156 | | - | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
180 | | - | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| |||
0 commit comments