also publish on pypi

This commit is contained in:
Wim Pomp
2025-04-30 12:52:12 +02:00
parent a3a40fecb4
commit cbb135e13e
4 changed files with 122 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
from __future__ import annotations
from collections import UserDict, UserList
from . import ome_metadata_rs as rs # noqa
class Ome(dict):
class Ome(UserDict):
@staticmethod
def from_xml(xml: str) -> Ome:
"""Create the OME structure from an XML string"""
@@ -27,7 +28,7 @@ class Ome(dict):
return new
class OmeList(list):
class OmeList(UserList):
def __getitem__(self, item: int) -> Ome | OmeList | int | float | str:
new = super().__getitem__(item)
if isinstance(new, dict):