Skip to content

Commit

Permalink
Update signatures for pybind
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Sep 20, 2023
1 parent ff2fad3 commit 934fa6f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ert/job_queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ def _queue_state_event_type(state: str) -> str:
# pylint: disable=too-many-public-methods
class JobQueue(BaseCClass): # type: ignore
TYPE_NAME = "job_queue"
_alloc = ResPrototype("void* job_queue_alloc()", bind=False)
_alloc = ResPrototype("void* job_queue_alloc(void*)", bind=False)
_free = ResPrototype("void job_queue_free( job_queue )")
_set_driver = ResPrototype("void job_queue_set_driver( job_queue , void* )")

_add_job = ResPrototype("int job_queue_add_job_node(job_queue, job_queue_node)")

Check failure on line 94 in src/ert/job_queue/queue.py

View workflow job for this annotation

GitHub Actions / annotate-python-linting

line too long (84 > 79 characters)

def __repr__(self) -> str:
Expand All @@ -113,11 +111,10 @@ def __init__(self, driver: "Driver", max_submit: int = 2):

self.job_list: List[JobQueueNode] = []
self._stopped = False
c_ptr = self._alloc(STATUS_file, ERROR_file)
c_ptr = self._alloc(driver.from_param(driver))
super().__init__(c_ptr)

self.driver = driver
self._set_driver(driver.from_param(driver))
self._differ = QueueDiffer()
self._max_job_duration = 0
self._max_submit = max_submit
Expand Down

0 comments on commit 934fa6f

Please sign in to comment.