Sebastian Rittau
Sebastian Rittau
Is passing an empty dict something that happens in real code? If it isn't, we could just adapt our tests. Otherwise I think using overloads is the only solution I...
There already *is* an "unknown" type in Python: `object`. JavaScript - and by extension Typescript - doesn't have a universal base type by virtue of having scalar types, making a...
I don't think there's much value in creating a second "unknown" type that's virtually equivalent to `object`. As pointed out by erictraut, the unknown type used internally by pyright has...
```python >>> isinstance(3, object) True >>> isinstance(None, object) True ``` That not all types have a `__dict__` attribute is true, and unfortunately not representable using the type system. But this...
One thing we could try is adding `__dict__: None` annotations to such classes, similar to what we do with unhashable classes (where we use ` __hash__: ClassVar[None]`).
If I understand it correctly, it's sometimes necessary to use this on Python < 3.11, since it supports `@coroutine` (removed in 3.11), which the `inspect` version doesn't support.
Please note that you will need a `stubs/clang/METADATA.toml` file describing these stubs. See `CONTRIBUTING.md` for more information and the other `METADATA.toml` files in this repository for examples.
Another build failure is due to the pyright strict config. This should be solved by adding `stubs/clang` to `pyrightconfig.stricter.json`'s `exclude` key. There are also some mypy errors here: https://github.com/python/typeshed/actions/runs/15101805593/job/42443806988?pr=13933
This needs a merge with main now.
This needs a merge with main now.