@@ -200,7 +200,7 @@ ARGS are the command-line args, available as `sys.argv'; can be a string (which
200
200
(let ((*habitat* (or habitat (make-habitat))))
201
201
(unless module-globals
202
202
(setf module-globals (habitat-module-globals *habitat* )))
203
- ( check-type module-globals ( or hash-table package #+ ecl cl-custom-hash-table ::custom-hash-table ))
203
+ ( assert (with-py-dict ( hash-table-p module-globals) ))
204
204
(when args-p
205
205
(setf (habitat-cmd-line-args *habitat* ) args))
206
206
(flet ((run ()
@@ -1545,7 +1545,7 @@ LOCALS shares share tail structure with input arg locals."
1545
1545
(multiple-value-bind (module module-new-p)
1546
1546
(ensure-module :src-pathname src-pathname :bin-pathname bin-pathname :name current-module-name)
1547
1547
(let ((%module-globals (module-ht module)))
1548
- (check-type %module-globals ( or hash-table #+ ecl cl-custom-hash-table ::custom-hash-table ))
1548
+ (assert (with-py-dict ( hash-table-p %module-globals) ))
1549
1549
(flet ((init-module (&optional (module-globals %module-globals))
1550
1550
(init-module-namespace module-globals current-module-name))
1551
1551
(run-top-level-forms (&optional (module-globals %module-globals))
@@ -1581,7 +1581,7 @@ LOCALS shares share tail structure with input arg locals."
1581
1581
:run-tlv t
1582
1582
:globals %module-globals))
1583
1583
(continue-loading (&key (init t ) (run-tlv t ) (globals %module-globals))
1584
- (check-type globals ( or hash-table #+ ecl cl-custom- hash-table::custom-hash-table ))
1584
+ (assert (with-py-dict ( hash-table-p globals) ))
1585
1585
(setf %module-globals globals)
1586
1586
(when init
1587
1587
(init-module))
0 commit comments