Use obj.is_(True) for SQLAlchemy objects #308

Manually merged
jgroman merged 1 commit from noqaE712 into develop 2026-05-18 09:01:43 +00:00
Owner

This replaces obj == True, which needs # noqa: E712 attached.


@jgroman This another of the reverts from the Forge PR. I just found more occurrences and fixed all of them. Can you verify that this is actually doing the right thing? Thanks.

This replaces `obj == True`, which needs `# noqa: E712` attached. ---- @jgroman This another of the reverts from the Forge PR. I just found more occurrences and fixed all of them. Can you verify that this is actually doing the right thing? Thanks.
kparal self-assigned this 2026-05-15 12:57:37 +00:00
Use obj.is_(True) for SQLAlchemy objects
Some checks failed
Run tests and linters / test (pull_request) Successful in 2m51s
Run tests and linters / lint (pull_request) Failing after 2s
fbd2069c45
This replaces `obj == True`, which needs `# noqa: E712` attached.
jgroman approved these changes 2026-05-18 08:46:49 +00:00
jgroman left a comment

LGTM

BTW: Changed codepaths are also partially covered by current testsuite with the exception of FreezeException and PrioritizedBug of cleanup_milestone() which do not have any tests. We should probably consider adding tests for those in some future task.

LGTM BTW: Changed codepaths are also partially covered by current testsuite with the exception of `FreezeException` and `PrioritizedBug` of `cleanup_milestone()` which do not have any tests. We should probably consider adding tests for those in some future task.
kparal force-pushed noqaE712 from fbd2069c45
Some checks failed
Run tests and linters / test (pull_request) Successful in 2m51s
Run tests and linters / lint (pull_request) Failing after 2s
to 7121e89d56
Some checks failed
Run tests and linters / test (pull_request) Successful in 3m17s
Run tests and linters / lint (pull_request) Failing after 2s
2026-05-18 08:57:59 +00:00
Compare
jgroman manually merged commit 7121e89d56 into develop 2026-05-18 09:01:43 +00:00
Author
Owner

Thanks, merged

Thanks, merged
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quality/blockerbugs!308
No description provided.