Skip to content

Use ty's None-union truthiness rule - #1657

Open
adamtheturtle wants to merge 1 commit into
mainfrom
use-ty-none-union-rule
Open

adamtheturtle wants to merge 1 commit into
mainfrom
use-ty-none-union-rule

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Upgrade ty from 0.0.84 to 0.0.85, the first release containing astral-sh/ruff#28889. The existing rules.all = "error" setting enables truthiness-test-of-none-union, so truthiness checks that conflate None with other falsy values are now rejected.

Validation: project-wide ty check, pyproject-fmt --check, and git diff --check passed. A temporary int | None example confirmed that the project configuration emits the new diagnostic. The existing ty documentation-example command also passed. No source changes or rule suppressions were needed.

This branch was successfully deployed

2 active deployments
vws — 982ec6c9 Deployed Oct 12, 2026 by adamtheturtle via build (3.15, ubuntu-latest) #4971
development — 982ec6c9 Deployed Oct 12, 2026 by adamtheturtle via pages #1314
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