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
@github-actions
Copy link
Contributor

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

@srittau srittau merged commit ee5f034 into python:main Oct 21, 2025
63 checks passed
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.

2 participants