File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 11"""
2+ stub file for type hints & documentations for the native module
23@see https://typing.readthedocs.io/en/latest/source/stubs.html
34"""
45
@@ -55,6 +56,14 @@ def collect() -> None:
5556 """
5657
5758
59+ def internalBinding (namespace : str ) -> JSObjectProxy :
60+ """
61+ INTERNAL USE ONLY
62+
63+ See function declarations in ./builtin_modules/internal-binding.d.ts
64+ """
65+
66+
5867class JSFunctionProxy ():
5968 """
6069 JavaScript Function proxy
@@ -87,6 +96,26 @@ class JSMethodProxy(JSFunctionProxy, object):
8796 """
8897
8998
99+ class JSObjectProxy (dict ):
100+ """
101+ JavaScript Object proxy dict
102+ """
103+
104+ def __init__ (self ) -> None : ...
105+
106+
107+ class bigint (int ):
108+ """
109+ Representing JavaScript BigInt in Python
110+ """
111+
112+
113+ class SpiderMonkeyError (Exception ):
114+ """
115+ Representing a corresponding JS Error in Python
116+ """
117+
118+
90119null = _typing .Annotated [
91120 _typing .NewType ("pythonmonkey.null" , object ),
92121 "Representing the JS null type in Python using a singleton object" ,
You can’t perform that action at this time.
0 commit comments