Commit ea05ed0
fix: Remove stub methods causing authentication failure
- Removed stub _make_request() from AuthenticationMixin that was returning None
- Removed stub _refresh_authentication() from HttpMixin
- These stubs were overriding actual implementations from other mixins
- Added proper TYPE_CHECKING imports and Protocol type hints instead
- All methods now properly typed with ProjectXClientProtocol for self parameter
- Authentication now works correctly with all examples passing
The stub methods were added for type annotation purposes but were inadvertently
overriding the real implementations due to Python's MRO (Method Resolution Order).
Using TYPE_CHECKING with Protocol type hints is the correct approach for typing
mixins that depend on methods from other mixins.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 98f55a6 commit ea05ed0
2 files changed
+17
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 88 | | |
98 | 89 | | |
99 | 90 | | |
| |||
102 | 93 | | |
103 | 94 | | |
104 | 95 | | |
105 | | - | |
| 96 | + | |
106 | 97 | | |
107 | 98 | | |
108 | 99 | | |
| |||
118 | 109 | | |
119 | 110 | | |
120 | 111 | | |
121 | | - | |
| 112 | + | |
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
| |||
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
143 | | - | |
| 134 | + | |
144 | 135 | | |
145 | 136 | | |
146 | 137 | | |
| |||
179 | 170 | | |
180 | 171 | | |
181 | 172 | | |
182 | | - | |
183 | 173 | | |
184 | 174 | | |
185 | 175 | | |
| |||
252 | 242 | | |
253 | 243 | | |
254 | 244 | | |
255 | | - | |
| 245 | + | |
256 | 246 | | |
257 | 247 | | |
258 | 248 | | |
| |||
277 | 267 | | |
278 | 268 | | |
279 | 269 | | |
280 | | - | |
| 270 | + | |
281 | 271 | | |
282 | 272 | | |
283 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 283 | | |
287 | 284 | | |
288 | 285 | | |
| |||
297 | 294 | | |
298 | 295 | | |
299 | 296 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 297 | | |
310 | 298 | | |
311 | 299 | | |
| |||
330 | 318 | | |
331 | 319 | | |
332 | 320 | | |
333 | | - | |
| 321 | + | |
334 | 322 | | |
335 | 323 | | |
336 | 324 | | |
| |||
0 commit comments