这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@amjith
Copy link
Member

@amjith amjith commented Aug 4, 2025

Also use nonlocal for mutating.

Description

Fixes the output_res() return signature.
Dedupes the code from output_res()

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv ruff check && uv ruff format to lint and format the code.

@amjith amjith requested a review from rolandwalker August 9, 2025 22:00
)

t = time() - start
try:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this try block, we should probably also restore from the deleted code:

                        if self.beep_after_seconds > 0 and t >= self.beep_after_seconds:
                            self.bell()
                        if special.is_timing_enabled():
                            self.echo("Time: %0.03fs" % t)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed it.

@amjith amjith merged commit 9c03fb3 into main Aug 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants