pydantic / bump-pydantic

Convert Pydantic from V1 to V2 ♻
MIT License
317 stars 24 forks source link

RecursionError when processing file with a large number of enums #119

Closed ErnestoLoma closed 1 year ago

ErnestoLoma commented 1 year ago

I'm getting the following error: RecursionError: maximum recursion depth exceeded while calling a Python object When running bump-pydantic on a file containing a very large number of enum. Attached is a sample file that causes the problem. If you uncomment the last line the error will occur. I'm using bump-pydantic 0.6.1 with python 3.9.12 enums.py.zip

Kludex commented 1 year ago

Please report it to LibCST.

There's nothing we can do on bump-pydantic about it.