Closed
Description
Summary
import os
os.stat(1)
$ ruff --version
ruff 0.11.7
$ ruff check --isolated --select PTH116 t.py
t.py:2:1: PTH116 `os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`
|
1 | import os
2 | os.stat(1)
| ^^^^^^^ PTH116
|
Found 1 error.
Path.stat()
has no support for file descriptors.
Version
0.11.7