Commit 3400d8c
Remove file exclusions for pyright (#1235)
* Remove pyright exclusion for temporalio/bridge/worker.py and fix type errors
- Remove temporalio/bridge/worker.py from pyproject.toml exclude list
- Add type ignore comments for reportOptionalMemberAccess errors in Worker class methods
- All 12 type errors resolved without functional changes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for temporalio/worker/_replayer.py and fix type errors
- Remove temporalio/worker/_replayer.py from pyproject.toml exclude list
- Add missing temporalio.worker import to fix Plugin reference
- Replace TypedDict direct access with .get() calls for optional keys
- Initialize variables to avoid unbound variable errors in finally block
- Use bridge_worker_scope to avoid variable shadowing issues
- All 25 type errors resolved without functional changes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for temporalio/worker/_worker.py and fix type errors
- Remove temporalio/worker/_worker.py from pyproject.toml exclude list
- Replace TypedDict direct access with .get() calls for optional keys
- Add type ignore comments for required fields and argument type mismatches
- Use variable pattern to avoid repeated access after .get() checks
- Store results of .get() in variables when followed by direct access
- All 81 type errors resolved without functional changes or defaults
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for temporalio/worker/workflow_sandbox/_importer.py
- Remove temporalio/worker/workflow_sandbox/_importer.py from pyproject.toml exclude list
- File was already type-clean with no errors to fix
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for temporalio/worker/workflow_sandbox/_restrictions.py and fix type errors
- Remove temporalio/worker/workflow_sandbox/_restrictions.py from pyproject.toml exclude list
- Fix variable redeclaration by renaming inner functions from bind_func to _bind_func
- Properly assign functions to bind_func variable to match type annotation
- All 2 type errors resolved without functional changes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for temporalio/workflow.py and fix type errors
- Remove temporalio/workflow.py from pyproject.toml exclude list
- Add missing imports for temporalio.bridge.proto modules
- Fix decorator return type annotations for defn, signal, and update
- Add type ignore comments for static method cls parameter warnings
- Add type ignore comments for complex return type issues in update decorator
- All 17 errors and 3 warnings resolved without functional changes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Clean up after claude
* Remove pyright exclusion for tests/api/test_grpc_stub.py and fix type errors
Fixed 8 type errors:
- Added type ignore comments for dict(context.invocation_metadata()) calls
- Added type ignore comments for grpc.aio.Server vs grpc.Server mismatch in add_WorkflowServiceServicer_to_server calls
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/conftest.py and fix type error
Fixed 1 type error:
- Added type ignore comment for request.config.getoption() return type mismatch
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/contrib/test_opentelemetry.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/contrib/pydantic/models.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/contrib/pydantic/models_2.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/contrib/pydantic/test_pydantic.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/contrib/pydantic/workflows.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/test_converter.py and fix type error
Fixed 1 type error:
- Added type ignore comment for DataConverter().decode() call with optional type hint
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/test_service.py and fix type errors
Fixed 3 type errors:
- Added type ignore comments for CallCollectingChannel abstract class usage
- Added type ignore comment for unary_unary method override incompatibility
- Added type ignore comment for __abstractmethods__ attribute assignment
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/worker/test_activity.py and add missing imports
Fixed 4 type errors by adding missing imports:
- Added import temporalio.api.common.v1
- Added import temporalio.exceptions
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/worker/workflow_sandbox/test_importer.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Remove pyright exclusion for tests/worker/workflow_sandbox/test_restrictions.py
File was already type-clean, no fixes needed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Cleanup
* Fix on 3.10
---------
Co-authored-by: Claude <[email protected]>1 parent 90dda94 commit 3400d8c
File tree
10 files changed
+185
-158
lines changed- temporalio
- bridge
- worker
- workflow_sandbox
- tests
- api
10 files changed
+185
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 207 | | |
232 | 208 | | |
233 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
226 | | - | |
227 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
228 | 236 | | |
229 | 237 | | |
230 | | - | |
| 238 | + | |
231 | 239 | | |
232 | | - | |
233 | | - | |
| 240 | + | |
| 241 | + | |
234 | 242 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
243 | 256 | | |
244 | 257 | | |
245 | 258 | | |
246 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
247 | 262 | | |
248 | 263 | | |
249 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
250 | 267 | | |
251 | 268 | | |
252 | 269 | | |
253 | 270 | | |
254 | 271 | | |
255 | 272 | | |
256 | | - | |
| 273 | + | |
257 | 274 | | |
258 | | - | |
| 275 | + | |
259 | 276 | | |
260 | 277 | | |
261 | 278 | | |
| |||
292 | 309 | | |
293 | 310 | | |
294 | 311 | | |
295 | | - | |
| 312 | + | |
296 | 313 | | |
297 | 314 | | |
298 | 315 | | |
| |||
307 | 324 | | |
308 | 325 | | |
309 | 326 | | |
| 327 | + | |
| 328 | + | |
310 | 329 | | |
311 | 330 | | |
312 | 331 | | |
| |||
347 | 366 | | |
348 | 367 | | |
349 | 368 | | |
350 | | - | |
| 369 | + | |
| 370 | + | |
351 | 371 | | |
352 | 372 | | |
353 | | - | |
| 373 | + | |
354 | 374 | | |
355 | 375 | | |
356 | 376 | | |
357 | 377 | | |
358 | 378 | | |
359 | 379 | | |
360 | | - | |
361 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
362 | 383 | | |
363 | 384 | | |
364 | 385 | | |
| |||
0 commit comments