https://pypi.org/project/callableabc/
https://pypi.org/project/maybedata/
The first is imported by the second.
I took the easy route and used flit.
The first is a metaclass that allows you to have callable abstract classes, the second is an implementation of Maybe in Python.
#made my first two Python packages
1 messages · Page 1 of 1 (latest)

the type checking fails with pyright for a weird reason I'm currently debating with the maintainers on github
the real question is
why are you even using python.
also
-100
overloading is cringe af
why would anyone do that
like
good luck making an Either (int | string) (int | bool) with overloading.
why would that be difficult?
both overloads take 1 arg
not to mention their types overlap
oh right
yeah I guess you would have to do it some other way. If only I had implemented another way to construct Maybe values in this package…
bro just be normal
and have separate constructors
having a single constructor is literally begging for confusion
not to mention having to do nasty inheritance breaking hacks
k
doesnt matter that you also have separate constructors
also it doesn't break inheritance
the merged one is still weird, and a footgun, and potentially unintuitive
OK sorry, I liked the metaclass weirdness