Open Jeremiah-England opened 4 months ago
I'm sorry to hear that. I'm not sure there's much this project can do about the situation other than stop using Typeguard. This project switched from Pydantic to Typeguard in order to avoid expensive and compatibility-challenged dependencies. This project could, of course, fall back to classical imperative validation of parameters, which would be a substantial loss of sophistication in the code. Can I assume this report is a symptom of a larger issue to be addressed between Typeguard and Pyright?
@jaraco Maybe it's worth contacting the Pyright maintainers? From what I've seen they were often quite quick regarding replies to issues and might have input on how to solve this most elegantly if you describe what you want to achieve.
I welcome others to tackle this architectural/design concern.
The trick explained here used to make typegaurd use the runtime types but MyPy use the static-type-checking types sadly does not work with Pyright.
So this gives an error: