Visitar URL original
gh-79940: add introspection API for asynchronous generators by tkren · Pull Request #11590 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
inspect: use f-string in getasyncgenlocals()
  • Loading branch information
tkren committed Mar 10, 2023
commit 093595abf2505d0ea57cc99a38bec7be80b44579
2 changes: 1 addition & 1 deletion Lib/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ def getasyncgenlocals(agen):
bound values."""

if not isasyncgen(agen):
raise TypeError("{!r} is not a Python async generator".format(agen))
raise TypeError(f"{agen!r} is not a Python async generator")

frame = getattr(agen, "ag_frame", None)
if frame is not None:
Expand Down