framapiaf.org est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Un service Mastodon fourni par l'association d’éducation populaire Framasoft.

Administré par :

Statistiques du serveur :

1,4K
comptes actifs

Midgard

My first post is live!

About a small decorator I wrote in that makes the inner classes of the decorated class, also subclasses of it.

I use that for namespaced sum types with data, such as the type Decision with a constructor Decision.Flag("created")

midgard.user.zeus.gent/blog/20

Midgard's blog · Turn inner classes into subclassesA decorator for Python classes that have inner classes, useful for sum types with data