omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.95k stars 107 forks source link

feat: add support for dataclasses._MISSING_TYPE #1137

Open majiayu000 opened 11 months ago

majiayu000 commented 11 months ago

Motivation

I am using fairseq with Python 3.11, finding that there are some compatibility issues here. If I want to use newer version, I have to change some code.

image

The error code as above

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

I made a test file to reproduce this error.

Fixes

Fixes #1136

Related PRs

Not found

omry commented 2 months ago

It doesn't make sense to me to treat dataclass.MISSING_TYPE as an empty dictionary.