openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Fix mypy

Open paper42 opened this issue 1 year ago • 1 comments

mypy doesn't correctly handle try except blocks, so it's necessary to import from the correct module based on the python version.

I accidentally broke this in https://github.com/openai/openai-python/pull/154, I am sorry about that

cc @ddeville

paper42 avatar Dec 21 '22 07:12 paper42