Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent module creation pyright type errors
Creating any Haiku module gives type errors on the latest Pyright due to the module metaclass specification (microsoft/pyright#5561). The issue is that the ideal type annotation is an intersection of `type[T]` and `ModuleMetaclass` where `T` is the return type, but Python doesn't have type intersections yet. The authors of the code chose `type[T]`, but Pyright requires `ModuleMetaclass`.
- Loading branch information