Skip to content

Include None in tqdm worker submission results - #16951

Open
Lushiyao5 wants to merge 1 commit into
python:mainfrom
Lushiyao5:fix-tqdm-worker-submit-none
Open

Lushiyao5 wants to merge 1 commit into
python:mainfrom
Lushiyao5:fix-tqdm-worker-submit-none

Conversation

@Lushiyao5

Copy link
Copy Markdown
Contributor

MonoWorker.submit() returns a Future only when submission succeeds. It catches and logs executor submission errors and then returns None. DiscordIO.delete() propagates that result. Reflect both outcomes in the stubs while retaining the generic Future result for successful worker submissions.

I verified successful submission and submission after executor shutdown. The Discord check uses a mocked HTTP session. Both type assertions failed with the existing stubs, then passed with the patch. Mypy also passed on the two changed stubs.

This patch was prepared with assistance from OpenAI Codex.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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