element-hq / element-hq/synapse

Add linter rule for Rust implementations of `__contains__` not accepting `PyAny`

Open
#19,664 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.