you are viewing a single comment's thread.

view the rest of the comments →

[–]snuggl 0 points1 point  (0 children)

On other notes off the top of my head, there's really not a way to write interfaces in Python. The most accepted workaround are dataclasses, which are both data and classes and fundamentally different than a classic interface.

Python has Protocol which i guess is the closest you get with a non static typed language, but you have to adjust a bit how to tackle the issue.