Closed asottile closed 10 months ago
found out what's happening -- in the pyright playground it is not inferencing the reassignment of foo_with_person
-- renaming the second one to foo_with_person2
fixes the puzzle output
no idea why it's different locally though
I checked the playground with your code, it seems to work as expected?
very strange -- indeed appears to pass now \o/
this works locally -- and on the version of pyright stated in requirements.txt
peeked at the stated solution and it feels a little cheeky to rely on the type checker to fill in the return value there