omegaconf
omegaconf copied to clipboard
Generated files use obsolete typing.io import
Describe the bug
Two generated files in omegaconf 2.2.1 use the typing.io namespace, which has been deprecated since Python 3.8 and will be removed in Python 3.12:
- omegaconf/grammar/gen/OmegaConfGrammarLexer.py
- omegaconf/grammar/gen/OmegaConfGrammarParser.py
This import can simply be replaced with an import from the main typing namespace as TextIO is available there.
Additional context
- [ ] OmegaConf version: 2.2.1
- [ ] Python version: any
- [ ] Operating system: any
- [ ] Please provide a minimal repro