pybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()

it's incorrect. as the underlying C implementation,
"osdmap_apply_incremental()", actually expects an instance of
`BasePyOSDMapIncrementalType`. which is mapped to
`BasePyOSDMapIncremental` in Python. and this class is wrapped using
`OSDMapIncremental` in mgr_module.py.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-01-19 14:49:07 +08:00
parent d139166ea7
commit 7b2dd7eba4

View File

@ -7,7 +7,7 @@ class BasePyOSDMap(object):
def _get_crush_version(self): ...
def _dump(self):...
def _new_incremental(self):...
def _apply_incremental(self, inc:int):...
def _apply_incremental(self, inc: 'BasePyOSDMapIncremental'):...
def _get_crush(self):...
def _get_pools_by_take(self, take):...
def _calc_pg_upmaps(self, inc, max_deviation, max_iterations, pool):...