diff --git a/bedspec/_reader.py b/bedspec/_reader.py index 14d7b71..c8d48b4 100644 --- a/bedspec/_reader.py +++ b/bedspec/_reader.py @@ -40,6 +40,7 @@ def comment_prefixes(self) -> set[str]: @staticmethod def _build_union(*types: type) -> type | UnionType: + """Build a singular type or a union type if multiple types are provided.""" if len(types) == 1: return types[0] union: UnionType | type = types[0] diff --git a/bedspec/_writer.py b/bedspec/_writer.py index 848c312..817a1ea 100644 --- a/bedspec/_writer.py +++ b/bedspec/_writer.py @@ -13,7 +13,7 @@ class BedWriter(TsvStructWriter[BedType]): @override def _encode(self, item: Any) -> Any: - """A callback for over_readriding the encoding of builtin types and custom types.""" + """A callback for overriding the encoding of builtin types and custom types.""" if item is None: return "." if isinstance(item, (list, set, tuple)):