Skip to content

Commit a1b1d47

Browse files
committed
Update import_module in docs
1 parent a294737 commit a1b1d47

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

_docs_src/src/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ And here's the output:
124124
```ocaml
125125
let filter_opt l = List.filter_map Fun.id l
126126
127-
let import_module () = Py.Import.import_module "thing"
128-
129127
module Thing : sig
130128
type t
131129
@@ -141,6 +139,8 @@ module Thing : sig
141139
142140
val sub : a:int -> b:int -> unit -> int
143141
end = struct
142+
let import_module () = Py.Import.import_module "thing"
143+
144144
type t = Pytypes.pyobject
145145
146146
let is_instance pyo =

_docs_src/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ And here's the output of the `ocamlformat` command.
7878
```ocaml
7979
let filter_opt l = List.filter_map Fun.id l
8080
81-
let import_module () = Py.Import.import_module "thing"
82-
8381
module Thing : sig
8482
type t
8583
@@ -93,6 +91,8 @@ module Thing : sig
9391
9492
val add : t -> y:int -> unit -> int
9593
end = struct
94+
let import_module () = Py.Import.import_module "thing"
95+
9696
type t = Pytypes.pyobject
9797
9898
let is_instance pyo =

_docs_src/src/matplotlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ For reference, here is the generated source code after running `ocamlformat`.
9191
```ocaml
9292
let filter_opt l = List.filter_map Fun.id l
9393
94-
let import_module () = Py.Import.import_module "plotter"
95-
9694
module Plotter : sig
9795
type t
9896
@@ -108,6 +106,8 @@ module Plotter : sig
108106
109107
val save : t -> filename:string -> unit -> unit
110108
end = struct
109+
let import_module () = Py.Import.import_module "plotter"
110+
111111
type t = Pytypes.pyobject
112112
113113
let of_pyobject pyo = pyo

0 commit comments

Comments
 (0)