-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
F821 triggers when using non-ASCII characters #942
Comments
Fascinating. |
Oddly I'm not seeing this error when running on my machine 🤔 |
Do you need any more details? |
Could it make a difference if you uploaded the exact file, rather than pasting the snippet? |
Unfortunately, I don't have the exact file anymore. I didn't actually run this snippet until now, and oddly it also seems to work for me in this case. It complains about it in this example though: def time_µs():
...
def main():
time_μs() |
Oh cool, that repros for me too. Thanks! |
Really don't understand this one. It seems to work fine if you indent with tabs, but not with spaces? def time_µs() -> int:
...
def main() -> None:
time_µs() |
Wait, no, that's wrong -- the tabs are irrelevant. |
Yeah, I think these are actually using different characters? In
The second uses:
The difference is
|
So, I think this is correct? |
Sigh, yes, the former ( |
Sorry for wasting your time, looks like it's VSCode that treats these two as the same character, e.g. when highlighting or using autocompletion (that's probably when it inserted a different character? 🤨). Anyways great project! ❤️ |
Haha no, all good, I was totally stumped! I learned a bit about debugging this stuff anyway. Thank you for the kind words :) |
(Off-topic) By the way, Rust has a built-in lint for this, just tried compiling the code in this playground. |
(it's obviously fine with a name like
time_us
)The text was updated successfully, but these errors were encountered: