Unexpected keyword argument
This fixed unexpected-keyword-argument warnings from pylint on one file.
The other warnings produced were already expected to be caught in tests.

- [x] xref #48855 one of many style checks, still needs work.
`pre-commit` is failing because I am using [Optional type annotation](https://docs.python.org/3/library/typing.html#typing.Optional) with the older syntax `Optional[type]` as the newer syntax `type | None` is only supported on Python 3.10+ > `pre-commit` is failing because I am using [Optional type annotation](https://docs.python.org/3/library/typing.html#typing.Optional) with the older syntax `Optional[type]` as the newer syntax `type | None` is only supported on Python 3.10+

it's supported with `from __future__ import annotations`, which is at the top of the file