mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 05:24:54 -04:00
Bump black
and click
versions (#12320)
This commit is contained in:
parent
6f2943714b
commit
a2b00a4486
16 changed files with 37 additions and 30 deletions
|
@ -217,13 +217,16 @@ def _check_yield_points(
|
|||
# We don't raise here as its perfectly valid for contexts to
|
||||
# change in a function, as long as it sets the correct context
|
||||
# on resolving (which is checked separately).
|
||||
err = "%s changed context from %s to %s, happened between lines %d and %d in %s" % (
|
||||
frame.f_code.co_name,
|
||||
expected_context,
|
||||
current_context(),
|
||||
last_yield_line_no,
|
||||
frame.f_lineno,
|
||||
frame.f_code.co_filename,
|
||||
err = (
|
||||
"%s changed context from %s to %s, happened between lines %d and %d in %s"
|
||||
% (
|
||||
frame.f_code.co_name,
|
||||
expected_context,
|
||||
current_context(),
|
||||
last_yield_line_no,
|
||||
frame.f_lineno,
|
||||
frame.f_code.co_filename,
|
||||
)
|
||||
)
|
||||
changes.append(err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue