Skip to content

Comments

chore: Modernize type hints and add type checking in hub-restyled.#227

Merged
iphydf merged 1 commit intoTokTok:masterfrom
iphydf:mypy
Feb 16, 2026
Merged

chore: Modernize type hints and add type checking in hub-restyled.#227
iphydf merged 1 commit intoTokTok:masterfrom
iphydf:mypy

Conversation

@iphydf
Copy link
Member

@iphydf iphydf commented Feb 16, 2026

Replace Optional with the | None syntax and add a runtime isinstance check to get to ensure the API response is a dictionary.


This change is Reviewable

Replace `Optional` with the `| None` syntax and add a runtime
`isinstance` check to `get` to ensure the API response is a dictionary.
@iphydf iphydf added this to the v0.1.3 milestone Feb 16, 2026
@github-actions github-actions bot added the chore Updating grunt tasks etc; no production code change label Feb 16, 2026
@iphydf iphydf marked this pull request as ready for review February 16, 2026 14:04
@iphydf iphydf merged commit 2e48de8 into TokTok:master Feb 16, 2026
11 of 12 checks passed
@iphydf iphydf deleted the mypy branch February 16, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Updating grunt tasks etc; no production code change

Development

Successfully merging this pull request may close these issues.

2 participants