Upsert AttributeError

Hello,

I’ve been working on this for a long time and just can’t figure out exactly why this code doesn’t work. The Docs don’t seem to cover this error. I’ve played around with different variations over the last few days and I can’t get it. Any help appreciated!

The error is:
AttributeError: ‘dict’ object has no attribute ‘_composed_schemas’

The code is:
https://github.com/gallaghercareer/youtube_transcription_script/blob/main/youtube_transcript_scraper/transcript_scraper_stackoverflow.py