Skip to content

Allow None return annotation on task execute#42

Open
snamber wants to merge 1 commit into
mainfrom
stefan/allow-task-execute-none-annotation
Open

Allow None return annotation on task execute#42
snamber wants to merge 1 commit into
mainfrom
stefan/allow-task-execute-none-annotation

Conversation

@snamber

@snamber snamber commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • accept Task.execute() -> None when annotations are postponed
  • preserve runtime rejection and static type checking for non-None return types
  • cover both accepted None and rejected int annotations through the real future-annotations compiler path

Verification

  • uv run --package tilebox-workflows pytest tilebox-workflows
  • uv run ruff check tilebox-workflows/tilebox/workflows/task.py tilebox-workflows/tests/test_task.py
  • uv run ty check tilebox-workflows/tilebox/workflows/task.py tilebox-workflows/tests/test_task.py
  • git diff --check

@snamber snamber requested a review from lukasbindreiter July 15, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant