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

Conversation

@rolandwalker
Copy link
Contributor

Description

In some theoretical case, contents could be empty and mycli would be unable to start due to an IndexError.

This is something that mypy should have been able to see.

Incidentally, combine statements using the walrus operator.

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 run ruff check && uv run ruff format to lint and format the code.

@rolandwalker rolandwalker self-assigned this Aug 16, 2025
In some theoretical case, contents could be empty and mycli would be
unable to start due to an IndexError.

This is something that mypy should have been able to see.

Incidentally, combine statements using the walrus operator.
@rolandwalker rolandwalker force-pushed the RW/guard-against-empty-thanks-picker branch from 05097dc to 2c06d00 Compare August 16, 2025 12:45
@rolandwalker rolandwalker merged commit 3f06326 into main Aug 16, 2025
8 checks passed
@rolandwalker rolandwalker deleted the RW/guard-against-empty-thanks-picker branch August 16, 2025 12:48
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.

2 participants