Skip to content

Commit

Permalink
Add basic docstrings to _ProgramWithInput
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Sep 15, 2020
1 parent e3a7dc7 commit 5784d2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jq.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,18 @@ cdef class _Program(object):


cdef class _ProgramWithInput(object):
"""Input-supplied program"""
cdef _JqStatePool _jq_state_pool
cdef object _bytes_input

def __cinit__(self, jq_state_pool, bytes_input):
"""
Initialize the input-supplied program.
Args:
jq_state_pool: The JQ state pool to acquire program state from.
bytes_input: The bytes containing input JSON.
"""
self._jq_state_pool = jq_state_pool
self._bytes_input = bytes_input

Expand Down

0 comments on commit 5784d2b

Please sign in to comment.