Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixing typing errors for pyright 1.1.373 #57

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

chanind
Copy link
Contributor

@chanind chanind commented Jul 26, 2024

This PR fixes typing issues with the most recent merge, which seems to be related to the newest version of pyright. The cls errors begin appearing in 1.1.372, and the error about the round() function is only in 1.1.373. I think the 1.1.373 issue is a bug in pyright, because it doesn't make any sense why this should be an error, and the error disappears if the round() is moved one line up. Also round() is called lots of other places in the file with similar arguments with no issues. Moving the line up doesn't change the logic at all and fixes typing, so... 🤷‍♂️.

@callummcdougall
Copy link
Owner

Thanks for the really quick fixing of stuff, really appreciate it!

@callummcdougall callummcdougall merged commit 243f21d into callummcdougall:main Jul 27, 2024
2 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.

2 participants