@@ -323,7 +323,9 @@ def attr_class_maker_callback(
323323 frozen = _get_frozen (ctx , frozen_default )
324324 order = _determine_eq_order (ctx )
325325 slots = _get_decorator_bool_argument (ctx , "slots" , slots_default )
326- hashable = _get_decorator_bool_argument (ctx , "hash" , False ) or _get_decorator_bool_argument (ctx , "unsafe_hash" , False )
326+ hashable = _get_decorator_bool_argument (ctx , "hash" , False ) or _get_decorator_bool_argument (
327+ ctx , "unsafe_hash" , False
328+ )
327329
328330 auto_attribs = _get_decorator_optional_bool_argument (ctx , "auto_attribs" , auto_attribs_default )
329331 kw_only = _get_decorator_bool_argument (ctx , "kw_only" , False )
@@ -948,9 +950,13 @@ def _add_match_args(ctx: mypy.plugin.ClassDefContext, attributes: list[Attribute
948950 )
949951 add_attribute_to_class (api = ctx .api , cls = ctx .cls , name = "__match_args__" , typ = match_args )
950952
953+
951954def _remove_hashability (ctx : mypy .plugin .ClassDefContext ) -> None :
952955 """Remove hashability from a class."""
953- add_attribute_to_class (ctx .api , ctx .cls , "__hash__" , NoneType (), is_classvar = True , overwrite_existing = True )
956+ add_attribute_to_class (
957+ ctx .api , ctx .cls , "__hash__" , NoneType (), is_classvar = True , overwrite_existing = True
958+ )
959+
954960
955961class MethodAdder :
956962 """Helper to add methods to a TypeInfo.
0 commit comments