Cecil Curry

Results 575 comments of Cecil Curry

> I think it might be either not mentionned or should be a bit more obvious... **You're totally right.** I actually thought the [@beartype FAQ](https://beartype.readthedocs.io/en/latest/faq) discussed forward references. Now, I...

**Cleverness.** You are @EtaoinWu and thus continue to be always right. I love both of your proposed solutions, actually: `beartype.vale.IsBadBecause[...]` and `beartype.roar.BeartypeCustomTypecheckError` are both fascinating solutions that I fully support....

**Absolutely right.** As always, you force us to become better people. 2024 is the year that @beartype finally goes hard on deep type-checking. So, this is happening. Still, we should...

I see your big bada boom and raise you... ![](https://media1.tenor.com/m/SqQr_z_pAZkAAAAC/multipass.gif) *that feeling when you realize a late-90's niche scifi film encapsulates the pinnacle of humanity* [PEP 692](https://peps.python.org/pep-0692), huh? So much...

*...heh.* Oh, `os.PathLike` – the red-headed stepchild of the typing world. Officially, the semantics of `os.PathLike[...]` have yet to be standardized; since there's *no* existing standard, everyone just makes up...

**Yuppers.** The custom `Protocol` approach also totally works. Clever workaround there. Sadly... > Is there any way to solve this without extra validators in `beartype`? Tragically, not at the moment....

You're most welcome. As a gentle reminder to myself to *eventually* implement this properly for everybody, would you mind if I quietly reopen this feature request? With any luck, I'll...

**Partially resolved by fe5b23d5e98e9b4eb.** @beartype's upcoming 0.17.0 release *...to be released before Santa Bear Claws gives us all the video games* shallowly type-checks `os.PathLike[...]` type hints. In fact, @beartype 0.17.0...

## tl;dr The **tl;dr** is that **you are not wrong.** You're very much right. @beartype currently lacks support for deep `O(1)` (i.e., constant-time) type-checking of `@dataclasses.dataclass` fields on assignment. Why?...

**Fetch side quest intensifies.** Let's RPG this. > it does indeed make me weary to put this to production... Indeed, your wariness is justified. Production deserves better. When even the...