Cecil Curry
Cecil Curry
**...woah.** AI slop. I actually *love* AI slop. The autism in me acknowledges the autism in AI. I'm delighted and deeply honoured that AI even knows that @beartype exists. That's...
> *declarative syntax* **Brilliant.** Let's do this, everyone! Ad naseum boilerplate like `Is[lambda x: is_bearable(x, Numpy2DFloatArray)]]` does indeed become intolerable to even the most patient bear bro. > Am I...
**Totally.** `IsBearable[...]` wouldn't *just* be syntactic sugar; it would also obviate the cost of not one but two pure-Python calls per type check (i.e., one call to the `Is[...]` lambda...
**Ho, ho, ho.** What's this? More `contextlib` madness!? It would seem so. I didn't actually know that the `@contextlib.asynccontextmanager` decorator even existed. Apparently, you're the first @beartype user to use...
**Ah, ha.** *Riiiight.* I'd conveniently forgotten all about that, huh? You're absolutely right. This deserves a new FAQ entry on type-checking `contextlib` decorators (in addition to us adding support for...
**Gotcha.** So, [`pytest-beartype`](https://github.com/beartype/pytest-beartype) sort of stuff. That... *definitely* puts a damper on the straightforward decorator approach. Thankfully, you still have two API weapons at your disposal: 1. **Skip the problematic...
**Resolved by 17fd6d381719c.** @beartype now officially supports `@contextlib.asynccontextmanager` under Python ≥ 3.11. If you need this *now*, the following one-liner will surely provide you the ultimate power: ```bash pip install...
**lol.** Now *that* one's a head stumper. Generally speaking, @beartype never lies about anything. That's the point, right? Whereas static type-checkers like `mypy` or `pyright` hallucinate about everything, @beartype is...
**Awesomeness!** Thanks so much for digging even deeper into this. Without further ado... Let's start with @beartype. The `@beartype` decorator correctly type-checks asynchronous callables – and has for a few...
**heh.** Crazy ol' obsolete unmaintained package `lazy_import` makes a surprise comeback, huh? We'd all *love* to see somebody pick that package back up with a friendly fork. Sadly, here we...