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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.12
3
+ Version: 0.23.14
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.23.12"
3
+ version = "0.23.14"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -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 # 기존 request_id에서 이름만 변경
340
+ internal_window_id = request_id
341
341
  params = params.copy()
342
342
  params['_pyloid_window_id'] = internal_window_id
343
- result = await func(**params)
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