omegaconf icon indicating copy to clipboard operation
omegaconf copied to clipboard

Generated files use obsolete typing.io import

Open srittau opened this issue 3 years ago • 0 comments

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

srittau avatar May 18 '22 10:05 srittau