Skip to content

Commit

Permalink
Add pysam/libcbgzf.pxd to declare BGZFile
Browse files Browse the repository at this point in the history
All the other pysam/*.pyx files have a corresponding *.pxd file
containing declarations, but this one was previously missing.
  • Loading branch information
jmarshall committed Oct 5, 2024
1 parent 6147f5d commit 4bde386
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions pysam/libcbgzf.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cython: language_level=3

from pysam.libchtslib cimport BGZF

cdef class BGZFile(object):
cdef BGZF *bgzf
cdef readonly object name, index
3 changes: 0 additions & 3 deletions pysam/libcbgzf.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ cdef class BGZFile(object):
This class only supports opening files in binary mode. If you need to open a
compressed file in text mode, use the gzip.open() function.
"""
cdef BGZF* bgzf
cdef readonly object name, index

def __init__(self, filename, mode=None, index=None):
"""Constructor for the BGZFile class.
Expand Down

0 comments on commit 4bde386

Please sign in to comment.