You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current Transaction API makes it slightly more difficult to use variables bound within the transaction block, since linters and other static analysis tools cannot know that the iterator is every invoked on our transaction iterable. Given that, we should give better examples of how to deal with those tools, and explain more of the philosophy here.
Suggested pattern is:
my_var=Noneasyncfortxinclient.transaction():
asyncwithtx:
my_var= …
assertmy_varisnotNone# use my_var without linter warnings or errors
The text was updated successfully, but these errors were encountered:
Our current Transaction API makes it slightly more difficult to use variables bound within the transaction block, since linters and other static analysis tools cannot know that the iterator is every invoked on our transaction iterable. Given that, we should give better examples of how to deal with those tools, and explain more of the philosophy here.
Suggested pattern is:
The text was updated successfully, but these errors were encountered: