We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bbcae commit 580a365Copy full SHA for 580a365
astroid/brain/brain_dataclasses.py
@@ -508,6 +508,8 @@ def _looks_like_dataclasses(node: nodes.Module) -> bool:
508
509
510
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."""
513
if "_replace" in node.locals:
514
node.locals["replace"] = node.locals["_replace"]
515
0 commit comments