Skip to content

Conversation

@asottile
Copy link
Contributor Author

maybe more explicitly this should be Any | None ? though I'm not sure if the BdbQuit part of this is possible?

@AlexWaygood
Copy link
Member

though I'm not sure if the BdbQuit part of this is possible?

yeah, that looks like dead code to me... maybe it's worth adding a comment to the stub? At first glance the runtime implementation definitely looks like it could return None if you ever hit the except branch

@github-actions

This comment has been minimized.

@asottile asottile changed the title fix the return type of bdb.Bdb.runeval match run / runctx / runeval to exec / eval parameters Nov 21, 2025
@github-actions
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants