@@ -57,15 +57,27 @@ let pyInstanceof (x: obj) (cons: obj) : bool = nativeOnly
5757
5858/// Works like `ImportAttribute` (same semantics as ES6 imports).
5959/// You can use "*" or "default" selectors.
60+ /// Path can be:
61+ /// - Relative (Pythonic): ".my_module", "..parent", "...grandparent" (resolved relative to current file)
62+ /// - Absolute/Package: "pydantic" or "collections.abc" (used as-is)
63+ /// - File path (legacy): "./my_module.py" (still supported for backwards compatibility)
6064let import < 'T > ( selector : string ) ( path : string ) : 'T = nativeOnly
6165
62- /// F#: let myMember = importMember<string> "myModule "
66+ /// F#: let myMember = importMember<string> ".my_module "
6367/// Py: from my_module import my_member
68+ /// Path can be:
69+ /// - Relative (Pythonic): ".my_module", "..parent", "...grandparent" (resolved relative to current file)
70+ /// - Absolute/Package: "pydantic" or "collections.abc" (used as-is)
71+ /// - File path (legacy): "./my_module.py" (still supported for backwards compatibility)
6472/// Note the import must be immediately assigned to a value in a let binding
6573let importMember < 'T > ( path : string ) : 'T = nativeOnly
6674
67- /// F#: let myLib = importAll<obj> "myLib"
68- /// Py: from my_lib import *
75+ /// F#: let myLib = importAll<obj> ".my_lib"
76+ /// Py: import my_lib as myLib
77+ /// Path can be:
78+ /// - Relative (Pythonic): ".my_module", "..parent", "...grandparent" (resolved relative to current file)
79+ /// - Absolute/Package: "pydantic" or "collections.abc" (used as-is)
80+ /// - File path (legacy): "./my_module.py" (still supported for backwards compatibility)
6981let importAll < 'T > ( path : string ) : 'T = nativeOnly
7082
7183/// Imports a file only for its side effects
0 commit comments