pyloid 0.23.12__tar.gz → 0.23.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyloid-0.23.12 → pyloid-0.23.14}/PKG-INFO +1 -1
- {pyloid-0.23.12 → pyloid-0.23.14}/pyproject.toml +1 -1
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/rpc.py +7 -2
- {pyloid-0.23.12 → pyloid-0.23.14}/LICENSE +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/README.md +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/__init__.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/api.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/autostart.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/browser_window.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/js_api/base.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/monitor.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/serve.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/store.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/timer.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/tray.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.23.12 → pyloid-0.23.14}/src/pyloid/utils.py +0 -0
@@ -337,10 +337,15 @@ class PyloidRPC:
|
|
337
337
|
else:
|
338
338
|
result = await func(*params, request_id=request_id)
|
339
339
|
else: # isinstance(params, dict)
|
340
|
-
internal_window_id = request_id
|
340
|
+
internal_window_id = request_id
|
341
341
|
params = params.copy()
|
342
342
|
params['_pyloid_window_id'] = internal_window_id
|
343
|
-
|
343
|
+
|
344
|
+
# 함수 시그니처에 맞는 인자만 추려서 전달
|
345
|
+
sig = inspect.signature(func)
|
346
|
+
allowed_params = set(sig.parameters.keys())
|
347
|
+
filtered_params = {k: v for k, v in params.items() if k in allowed_params}
|
348
|
+
result = await func(**filtered_params)
|
344
349
|
|
345
350
|
# 5. Format Success Response (only for non-notification requests)
|
346
351
|
if request_id is not None: # Notifications (id=null or absent) don't get responses
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|