-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[red-knot] Add AlwaysTruthy
and AlwaysFalsy
to knot_extensions
#15437
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Adding AlwaysTruthy
and AlwaysFalsy
seems sensible to me. I considered adding something like LiteralExt
in the knot_extensions
PR, but we then decided to go with the more general TypeOf
for now. If we add LiteralExt
, we should probably remove TypeOf
?
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
knot_extensions
with a few more symbolsAlwaysTruthy
and AlwaysFalsy
to knot_extensions
Summary
Part of #15397. There are quite a few tests that use
AlwaysTruthy
/AlwaysFalsy
/ClassLiteral
/FunctionLiteral
, so it's would be convenient to have direct access to them viaknot_extensions
.Test Plan
Markdown tests.