docs: fix docstring

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-08-23 19:44:10 +08:00
parent 2ceed5c376
commit 342a1ef888

View file

@ -365,7 +365,7 @@ class NaType(str):
return (self // other, self % other)
def __rdivmod__(self, other: object) -> Tuple[float, float]:
"""divmod(other, :const:`nvitop.NA): The pair (other // :const:`nvitop.NA`, other % :const:`nvitop.NA`).
"""divmod(other, :const:`nvitop.NA`): The pair (other // :const:`nvitop.NA`, other % :const:`nvitop.NA`).
>>> divmod(1024, NA)
(nan, nan)