Skip to content

Commit 580a365

Browse files
Add comment
1 parent 62bbcae commit 580a365

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

astroid/brain/brain_dataclasses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ def _looks_like_dataclasses(node: nodes.Module) -> bool:
508508

509509

510510
def _resolve_private_replace_to_public(node: nodes.Module) -> None:
511+
"""In python/cpython@6f3c138, a _replace() method was extracted from
512+
replace(), and this indirection made replace() uninferable."""
511513
if "_replace" in node.locals:
512514
node.locals["replace"] = node.locals["_replace"]
513515

0 commit comments

Comments
 (0)