Toot

Written by Funky Bob on 2024-10-22 at 01:49

So I took a run at switching to Pydantic... and have run into a bit of a circular reference issue.

Every Content object has a reference to its Site, but Site contains all its Content objects.

If I make it a string, #pydantic ends up complaining "X is not fully defined".

How are people dealing with this?

=> More informations about this toot | View the thread | More toots from FunkyBob@chaos.social

Mentions

Tags

=> View pydantic tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113348560813274994
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
247.766673 milliseconds
Gemini-to-HTML Time
0.277462 milliseconds

This content has been proxied by September (3851b).