Skip to content

Commit d0134ac

Browse files
committed
Refactor _lbl method in ROI2DParam to remove static method declaration
1 parent 2597192 commit d0134ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cdl/core/model/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ class ROI2DParam(gds.DataSet):
199199
_rfp = gds.FuncProp(_geometry_prop, lambda x: x is RoiDataGeometries.RECTANGLE)
200200
_cfp = gds.FuncProp(_geometry_prop, lambda x: x is RoiDataGeometries.CIRCLE)
201201

202-
@staticmethod
203-
def _lbl(name: str, index: int):
202+
# Do not declare it as a static method: not supported on Python 3.8
203+
def _lbl(name: str, index: int): # pylint: disable=no-self-argument
204204
"""Returns name<sub>index</sub>"""
205205
return f"{name}<sub>{index}</sub>"
206206

0 commit comments

Comments
 (0)