Bug #62172
openmgr/dashboard: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")
0%
Description
Description of problem¶
dashboard/plugins/feature_toggles.py:12: note: In module imported here,
dashboard/module.py:54: note: ... from here,
dashboard/__init__.py:60: note: ... from here:
dashboard/controllers/rbd.py: note: In member "status" of class "RbdStatus":
dashboard/controllers/rbd.py:209: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")
dashboard/plugins/feature_toggles.py:13: note: In module imported here,
dashboard/module.py:54: note: ... from here,
dashboard/__init__.py:60: note: ... from here:
dashboard/controllers/rbd_mirroring.py: note: In member "status" of class "RbdMirroringStatus":
dashboard/controllers/rbd_mirroring.py:654: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")
Found 2 errors in 2 files (checked 32 source files)
ERROR: InvocationError for command /home/yuvalif/ceph4/src/pybind/mgr/.tox/mypy/bin/mypy --config-file=../../mypy.ini -m alerts -m balancer -m cephadm -m crash -m dashboard -m devicehealth -m diskprediction_local -m hello -m influx -m iostat -m localpool -m mds_autoscaler -m mgr_module -m mgr_util -m mirroring -m nfs -m orchestrator -m pg_autoscaler -m progress -m prometheus -m rbd_support -m rgw -m rook -m snap_schedule -m selftest -m stats -m status -m telegraf -m telemetry -m test_orchestrator -m volumes -m zabbix (exited with code 1)
Environment¶
ceph version
string:- Platform (OS/distro/release):
- Cluster details (nodes, monitors, OSDs):
- Did it happen on a stable environment or after a migration/upgrade?:
- Browser used (e.g.:
Version 86.0.4240.198 (Official Build) (64-bit)
):
How reproducible¶
Steps:
- ...
Actual results¶
Please add logs and/or screenshots
Expected results¶
here
Additional info¶
here
Updated by Nizamudeen A 9 months ago
- Category set to General - Back-end
- Status changed from New to Pending Backport
- Assignee set to Pere Díaz Bou
- Backport set to reef
- Pull request ID set to 52647
Updated by Backport Bot 9 months ago
- Copied to Backport #62342: reef: mgr/dashboard: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]") added