ghapi icon indicating copy to clipboard operation
ghapi copied to clipboard

use of fast core types prevents basic operations like json.dumps on a response

Open kapilt opened this issue 3 years ago • 1 comments

afaics the use of fast core types like L prevents basic operations like serializing the response from ghapi.

 >>> json.dumps(o)
*** TypeError: Object of type L is not JSON serializable

kapilt avatar Oct 11 '22 15:10 kapilt

There's a workaround at https://github.com/AnswerDotAI/ghapi/issues/66#issuecomment-897167977 using from fastcore.xtras import obj2dict.

hugovk avatar Jan 03 '25 09:01 hugovk