Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove patched enum.__new__, as the cyclic reference is no longer pre…
…sent in Python 3.11+. (#15531) Partially reverts #12617. Summary of the issue: #12617 added a patched __new__ to work around a GC cycle in Python 3.7. However, on Python 3.11 and 3.12, this is no longer present. Description of how this pull request fixes the issue: Remove the patched method. Testing strategy: Tested that On Python 3.7, the cyclic ref is present when the patched __new__ is removed. On Python 3.11, no unreachable object error is reported in IA2 documents. On Python 3.12, no unreachable object error is reported in IA2 documents.
- Loading branch information