Skip to content

Commit e9548a2

Browse files
authored
Merge branch 'main' into narrowing-to-constants-in-branches-with-is
2 parents 33b8920 + 63cc125 commit e9548a2

File tree

3 files changed

+149
-146
lines changed

3 files changed

+149
-146
lines changed

Lib/asyncio/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def __init__(
2727
# ─── indexing helpers ───────────────────────────────────────────
2828
def _format_stack_entry(elem: str|FrameInfo) -> str:
2929
if not isinstance(elem, str):
30-
if elem.lineno == 0 and elem.filename == "":
30+
if elem.location.lineno == 0 and elem.filename == "":
3131
return f"{elem.funcname}"
3232
else:
33-
return f"{elem.funcname} {elem.filename}:{elem.lineno}"
33+
return f"{elem.funcname} {elem.filename}:{elem.location.lineno}"
3434
return elem
3535

3636

0 commit comments

Comments
 (0)