3 ms·
I hate when libraries do that, or create a `def ClassLike`. I’ve found the library `beartype` to be very good for runtime checks built into partially annotated
by refactor_master 1y ago
I hate when libraries do that, or create a `def ClassLike`.
I’ve found the library `beartype` to be very good for runtime checks built into partially annotated `Annotated` types with custom validators, so instead of instance checks you rely directly on signatures and typeguards.