-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for running fakeredis on 3.12 #211
Conversation
lupa now has support for 3.12, so this restriction can be removed
✅ Deploy Preview for bot-core ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
if user.id in allowed_users or any(role.id in allowed_roles for role in getattr(user, "roles", [])): | ||
return True | ||
return False | ||
return bool( |
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.
why bool(
?
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.
It's just what ruff auto-corrected it to. Just a bracket would probably work too, but I found this more readable.
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.
What does this change mean?
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.
When running poetry run task docs
on Python 3.12 without this change, it errors saying that it couldn't import docs
.
I noticed we were adding the project root to the path further down anyway so just moved it up.
Got a PR up on lance ready to test this as needed.