Skip to content

Commit 60ef460

Browse files
Fix Seq usage (OCaml<4.07) and dependency to unix package (OCaml>=5)
1 parent d9d4045 commit 60ef460

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(modules numpy py pyops pycaml pyml_arch pytypes pywrappers pyutils)
44
(foreign_stubs (language c) (names numpy_stubs pyml_stubs))
55
(wrapped false)
6-
(libraries bigarray stdcompat))
6+
(libraries unix bigarray stdcompat))
77

88
(executables
99
(names generate)

py.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,16 +723,16 @@ module Dict: sig
723723
(** [to_bindings_string o] returns all the pairs [(key, value)] in the Python
724724
dictionary [o]. *)
725725

726-
val to_bindings_seq: Object.t -> (Object.t * Object.t) Seq.t
726+
val to_bindings_seq: Object.t -> (Object.t * Object.t) Stdcompat.Seq.t
727727
(** [to_bindings_seq o] returns the ephemeral sequence of all the pairs
728728
(key, value) in the Python dictionary [o]. *)
729729

730730
val to_bindings_seq_map: (Object.t -> 'a) -> (Object.t -> 'b) -> Object.t ->
731-
('a * 'b) Seq.t
731+
('a * 'b) Stdcompat.Seq.t
732732
(** [to_bindings_seq_map fkey fvalue o] returns the ephemeral sequence of all
733733
the pairs (fkey key, fvalue value) in the Python dictionary [o]. *)
734734

735-
val to_bindings_string_seq: Object.t -> (string * Object.t) Seq.t
735+
val to_bindings_string_seq: Object.t -> (string * Object.t) Stdcompat.Seq.t
736736
(** [to_bindings_string_seq o] returns the ephemeral sequence of all the pairs
737737
(key, value) in the Python dictionary [o]. *)
738738

pyml.opam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ build: [
3232
]
3333
]
3434
dev-repo: "git+https://github.com/thierry-martinez/pyml.git"
35-
version: "20220615"

0 commit comments

Comments
 (0)