-
On L9 and L11, Pyright reports that cost = at = r = 0
while True:
if at < 0:
cost += r - 1
at = r
while at != (dest := at + 1):
r = max(r, dest)
cost += abs(at - dest)
at = dest |
Beta Was this translation helpful? Give feedback.
Answered by
erictraut
Sep 12, 2024
Replies: 1 comment 1 reply
-
I think you meant to say "false positive". Yeah, I agree this is a bug. I'll create an issue from the discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
injust
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you meant to say "false positive". Yeah, I agree this is a bug.
I'll create an issue from the discussion.