Skip to content
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

Assert that passed redis is of Type Redis Instance #192

Closed
wants to merge 1 commit into from

Conversation

fmssn
Copy link

@fmssn fmssn commented Oct 5, 2023

We got stuck with the error that we set the redis connection string so SESSION_REDIS, with results in setting self.redis correctly, but then getting the error that str does not have method get. This asserts type safety and is more verbose.

Another way would be that you could check if it is of type string and then create a Redis Instance from there.

We got stuck with the error that we set the redis connection string so SESSION_REDIS, with results in setting self.redis correctly, but then getting the error that str does not have method get. This asserts type safety and is more verbose.
Lxstr added a commit that referenced this pull request Mar 1, 2024
@Lxstr
Copy link
Contributor

Lxstr commented Mar 9, 2024

Added in 0.7.0rc1 onwards

@Lxstr Lxstr closed this Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants