mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Add type stub for SymInt.rsub (#138543)
Fixes https://github.com/pytorch/pytorch/issues/138478 Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/138543 Approved by: https://github.com/malfet
This commit is contained in:
parent
8c840fb921
commit
1b61313acd
1 changed files with 3 additions and 0 deletions
|
|
@ -522,6 +522,9 @@ class SymInt:
|
|||
def __sub__(self, other: "IntLikeType") -> "SymInt":
|
||||
raise TypeError("type stub not overridden")
|
||||
|
||||
def __rsub__(self, other: "IntLikeType") -> "SymInt":
|
||||
raise TypeError("type stub not overridden")
|
||||
|
||||
def __repr__(self):
|
||||
return self.node._graph_repr()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue