Skip to content

Conversation

donBarbos
Copy link
Contributor

add parameter is passed to Tkinter methods that, according to typeshed, also accept Literal["", "+"], but documentation only mentions True and False, so I decided to leave only the bool type.
RawTurtle.{onclick,onrelease,ondrag} methods also only used the bool type before.

`add` parameter is passed to Tkinter methods that, according to typeshed, also accept `Literal["", "+"]`, but [documentation](docs.python.org/dev/library/turtle.html) only mentions `True` and `False`, so I decided to leave only the bool type.
The `RawTurtle.{onclick,onrelease,ondrag}` methods also only used the bool type before.
@donBarbos donBarbos changed the title [turtle] Use bool for add param [turtle] Use bool for add params Oct 19, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant