Skip to content

Commit 4a01786

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8e8c129 commit 4a01786

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/plugins/dataclasses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,9 +977,10 @@ def _mangle_internal_sym_name(type_fullname: str, member_name: str) -> str:
977977
same name."""
978978
module_name, type_name = type_fullname.rsplit(".")
979979
module_name = module_name.replace(".", "-")
980-
type_name = type_name.lstrip('_')
980+
type_name = type_name.lstrip("_")
981981
return f"_{type_name}__{module_name}__{member_name}"
982982

983+
983984
def _get_transform_spec(reason: Expression) -> DataclassTransformSpec:
984985
"""Find the relevant transform parameters from the decorator/parent class/metaclass that
985986
triggered the dataclasses plugin.

0 commit comments

Comments
 (0)