Remove unused local variables in inspect.py (#24218)

1 file changed