Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 2, 2025
1 parent 8e8c129 commit 4a01786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mypy/plugins/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,10 @@ def _mangle_internal_sym_name(type_fullname: str, member_name: str) -> str:
same name."""
module_name, type_name = type_fullname.rsplit(".")
module_name = module_name.replace(".", "-")
type_name = type_name.lstrip('_')
type_name = type_name.lstrip("_")
return f"_{type_name}__{module_name}__{member_name}"


def _get_transform_spec(reason: Expression) -> DataclassTransformSpec:
"""Find the relevant transform parameters from the decorator/parent class/metaclass that
triggered the dataclasses plugin.
Expand Down

0 comments on commit 4a01786

Please sign in to comment.