Skip to content

Commit fae41e8

Browse files
committed
Fix stubs and comment for weakref removal
1 parent 57a7c21 commit fae41e8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/pyscipopt/scip.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ cdef class Model:
22512251
cdef int _generated_event_handlers_count
22522252
# store references to Benders subproblem Models for proper cleanup
22532253
cdef _benders_subproblems
2254-
# store references to plugins to break circular references in __dealloc__
2254+
# store references to plugins for the Model <-> Plugin reference cycle
22552255
cdef _plugins
22562256
# store iis, if found
22572257
cdef SCIP_IIS* _iis

src/pyscipopt/scip.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ class Event:
315315
class Eventhdlr:
316316
model: Incomplete
317317
name: Incomplete
318+
_caught_events: list
318319
def __init__(self) -> None: ...
319320
def eventcopy(self) -> Incomplete: ...
320321
def eventdelete(self) -> Incomplete: ...
@@ -424,6 +425,7 @@ class IIS:
424425

425426
@disjoint_base
426427
class IISfinder:
428+
model: Incomplete
427429
iis: Incomplete
428430
def __init__(self) -> None: ...
429431
def iisfinderexec(self) -> Incomplete: ...

0 commit comments

Comments
 (0)