From 9c55bf37c0f7e9af0f0941848d6de1b335dd6529 Mon Sep 17 00:00:00 2001 From: clintval Date: Fri, 8 Nov 2024 15:44:24 -0800 Subject: [PATCH] docs: fixup docs a bit --- bedspec/_reader.py | 1 + bedspec/_writer.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)):