wkentaro / labelme

Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
https://labelme.io
Other
13.62k stars 3.42k forks source link

Use standard `types.SimpleNamespace` instead of custom `struct` #1480

Open akx opened 3 months ago

akx commented 3 months ago

types.SimpleNamespace does what the struct class did, but with a better repr and better IDE etc. support (e.g. PyCharm can infer that the attrs passed into the ctor will be available on the instance).