Skip to content

Use python 3.10 type hinting features#1149

Merged
MarkZH merged 3 commits intolichess-bot-devs:masterfrom
AttackingOrDefending:310-mypy
Oct 12, 2025
Merged

Use python 3.10 type hinting features#1149
MarkZH merged 3 commits intolichess-bot-devs:masterfrom
AttackingOrDefending:310-mypy

Conversation

@AttackingOrDefending
Copy link
Copy Markdown
Member

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

Fixes Use int | str instead of Union[int, str], and int | None instead of Optional[int]. and Use [TypeAlias](https://docs.python.org/3/library/typing.html#typing.TypeAlias), for example: MOVE = Union[PlayResult, list[Move]] changes to MOVE: TypeAlias = Union[PlayResult, list[Move]]..

Related Issues:

#677

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

@MarkZH MarkZH merged commit ede1e65 into lichess-bot-devs:master Oct 12, 2025
23 checks passed
r0950336 pushed a commit to r0950336/lichess-bot that referenced this pull request Dec 31, 2025
@AttackingOrDefending AttackingOrDefending deleted the 310-mypy branch January 9, 2026 17:37
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