We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now, assigning to the cancel scope .deadline attribute does:
.deadline
self._deadline = float(new_deadline)
so that means that we at least know that scope.deadline = "asdf" or scope.deadline = None will fail. However, surprisingly, it allows code like:
scope.deadline = "asdf"
scope.deadline = None
scope.deadline = "1.2e3" # a string is a float?1? scope.deadline = float("nan") # uh not sure what will happen here
We should perhaps validate these values more carefully.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now, assigning to the cancel scope
.deadline
attribute does:so that means that we at least know that
scope.deadline = "asdf"
orscope.deadline = None
will fail. However, surprisingly, it allows code like:We should perhaps validate these values more carefully.
The text was updated successfully, but these errors were encountered: