Remove hashability from a class.
(ctx: mypy.plugin.ClassDefContext)
| 981 | |
| 982 | |
| 983 | def _remove_hashability(ctx: mypy.plugin.ClassDefContext) -> None: |
| 984 | """Remove hashability from a class.""" |
| 985 | add_attribute_to_class( |
| 986 | ctx.api, ctx.cls, "__hash__", NoneType(), is_classvar=True, overwrite_existing=True |
| 987 | ) |
| 988 | |
| 989 | |
| 990 | class MethodAdder: |
no test coverage detected
searching dependent graphs…