Skip to content

Commit 03f3b8a

Browse files
committed
feat(typing): add typings for JSStringProxy and JSArrayProxy
1 parent 3b06c0e commit 03f3b8a

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

python/pythonmonkey/pythonmonkey.pyi

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,39 @@ class JSMethodProxy(JSFunctionProxy, object):
115115
print(myObject.value) # 42.0
116116
"""
117117

118-
def __init__(self) -> None:
119-
"""
120-
PythonMonkey init function
121-
"""
118+
def __init__(self) -> None: "deleted"
122119

123120

124121
class JSObjectProxy(dict):
125122
"""
126123
JavaScript Object proxy dict
127124
"""
128125

129-
def __init__(self) -> None: ...
126+
def __init__(self) -> None: "deleted"
127+
128+
129+
class JSArrayProxy(list):
130+
"""
131+
JavaScript Array proxy
132+
"""
133+
134+
def __init__(self) -> None: "deleted"
135+
136+
137+
class JSArrayIterProxy(_typing.Iterator):
138+
"""
139+
JavaScript Array Iterator proxy
140+
"""
141+
142+
def __init__(self) -> None: "deleted"
143+
144+
145+
class JSStringProxy(str):
146+
"""
147+
JavaScript String proxy
148+
"""
149+
150+
def __init__(self) -> None: "deleted"
130151

131152

132153
class bigint(int):

0 commit comments

Comments
 (0)