Config parser cleanup.
Config parser cleanup.

- Switches to newer typing.NamedTuple syntax
- Uses Python's default tokenize.TokenInfo NamedTuple fields

PiperOrigin-RevId: 372583824

google/gin-config,google/gin-config