rename `keys=` as `local_keys=` in #inspect. ref #1150