Skip to content

Conversation

@aljosanpedro
Copy link


for first_token, second_token, third_token in zip(tokens, tokens[1:], tokens[2:]):
for first_token, second_token, third_token in zip(
tokens, tokens[1:], tokens[2:], strict=False
Copy link
Member

Choose a reason for hiding this comment

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

instead of passing False here, should we update the first three args to tokens[:-2], tokens[1:-1], tokens[2:]?

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.

STY: Enforce Ruff rule B905, zip-without-explicit-strict

2 participants