aha79

Results 14 comments of aha79

I just found a better way: In Python 3.10 +, cattrs could evaluate ForwardRefs without user intervention. We would just need to require that the user must use `NewType` (which...

@Tinche Allright. Then lets split the issue, and put the NewType handling aside. It can be added later, and, as a side-effect, improve the usability for ForwardRefs. Should I prepare...

I think the error is due to this [commit (a change in functools.py)](https://github.com/python/cpython/commit/03c7449fbc7c57f5e0365f234a0b65c1dde763f2#diff-8657d1a12c81ea9da8c75d3de3827fc6f1e033339453e9587f1ec2f5dfc5111d), which was a fix due to [bpo-46032](https://bugs.python.org/issue46032). It seems that the newly added check `_is_valid_dispatch_type()` returns false...

Let me quote the relevant text ([type keyword](https://json-schema.org/draft/2020-12/json-schema-validation.html#name-type)) from the spec > The value of this keyword MUST be either a string or an array. If it is an array,...