From c224694b931773a1fd15a93ce0b49969f11b1b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Camargo?= Date: Mon, 15 Dec 2025 09:40:56 -0300 Subject: [PATCH] Update `Record` signature --- needletail.pyi | 2 ++ src/python.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/needletail.pyi b/needletail.pyi index 7fa5e1e..50f6c52 100644 --- a/needletail.pyi +++ b/needletail.pyi @@ -63,6 +63,8 @@ class Record: id: str seq: str + name: str + description: Optional[str] qual: Optional[str] def is_fasta(self) -> bool: diff --git a/src/python.rs b/src/python.rs index bfe9ab7..e7f0d6d 100644 --- a/src/python.rs +++ b/src/python.rs @@ -103,9 +103,6 @@ impl PyFastxReader { /// all characters (including whitespaces) after the leading '@' character. /// seq : str /// A string representing the sequence. -/// qual : str, optional -/// A string representing the quality scores of the sequence. If the object -/// represents a FASTA record, this attribute will be `None`. /// name : str /// The name of the sequence record. This is the string before the first /// whitespace character in the `id` attribute. @@ -113,6 +110,9 @@ impl PyFastxReader { /// The description of the sequence record. This is the string after the /// first whitespace character in the `id` attribute. If the `id` attribute /// contains no whitespace characters, this attribute will be `None`. +/// qual : str, optional +/// A string representing the quality scores of the sequence. If the object +/// represents a FASTA record, this attribute will be `None`. /// /// Methods /// -------