Removing unused defining_class: defining_class from clinic has one big adavantage (aside from the fact that it is unused in the first place): it speeds up is_junction call.
The exact benchmark is system-dependent, here are my numbers (note, that I am on macos and always get False as the result).
Activity
pythongh-108717: Speedup `os.DirEntry.is_junction` function
gh-108717: Speedup `os.DirEntry.is_junction` function (#108718)