element-hq / element-hq/synapse
Add linter rule for Rust implementations of `__contains__` not accepting `PyAny`
Open
T-Task
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
As well as `__getitem__` and probably others.
Would catch https://github.com/element-hq/synapse/pull/19649/files
We can probably use opengrep or something for this to write a simple rule to warn about this problem.
cc @dkasak who has interest in opengrep style tools.
Contributor guide
Assessment
This issue has not been assessed yet.