ruff: F821 triggers when using non-ASCII characters
from time import time_ns
def time_µs() -> int:
return time_ns() // 1000
def main() -> None:
print(time_µs())
if __name__ == "__main__":
main()
test.py:7:9: F821 Undefined name `time_μs`
(it’s obviously fine with a name like time_us
)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (15 by maintainers)
Fascinating.
Haha no, all good, I was totally stumped! I learned a bit about debugging this stuff anyway.
Thank you for the kind words 😃
Oh cool, that repros for me too. Thanks!