Skip to content

Commit

Permalink
Add missing method of Variable::PasteBindingWithNewData and its type.
Browse files Browse the repository at this point in the history
This was causing to fail on type check when we started to annotate `Variable` as a type.

PiperOrigin-RevId: 690614667
  • Loading branch information
h-joo authored and copybara-github committed Oct 28, 2024
1 parent fd0564d commit 8fff648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytype/typegraph/cfg.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Variable:
def AddBinding(self, data: Any) -> Binding: ...
@overload
def AddBinding(self, data: Any, source_set: Iterable[Binding], where: CFGNode) -> Binding: ...
def PasteBindingWithNewData(self, binding: Binding, data: Any) -> Binding: ...
def AssignToNewVariable(self, where: Optional[CFGNode] = ...) -> Variable: ...
def PasteVariable(self, variable: Variable, where: Optional[CFGNode] = ..., additional_sources: Optional[Iterable[Binding]] = ...) -> None: ...
def PasteBinding(self, binding: Binding, where: Optional[CFGNode] = ..., additional_sources: Optional[Iterable[Binding]] = ...) -> None: ...
Expand Down

0 comments on commit 8fff648

Please sign in to comment.