basedpyright
basedpyright copied to clipboard
don't `reportAny` if the assigned type is `object`
Description
Code sample in basedpyright playground
import json
foo: object = json.loads('asdf')
this is completely safe so there's no point reporting an error here
@DetachHead 👋 I too came across this the other day. I made a quick fix. PTAL when you get a chance. Thank you!
thanks for the contribution! i'm a bit busy with other work for the next week or so but i will have a look when i can