Skip to content

Commit

Permalink
chore: npm-check-updates && yarn upgrade (aws#3721)
Browse files Browse the repository at this point in the history
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
  • Loading branch information
aws-cdk-automation authored Aug 30, 2022
1 parent 1fd58db commit 283aa56
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 208 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@types/jest": "^28.1.7",
"@types/node": "^14.18.24",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@types/jest": "^28.1.8",
"@types/node": "^14.18.26",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"all-contributors-cli": "^6.20.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-import-resolver-typescript": "^3.4.1",
"eslint-import-resolver-typescript": "^3.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"fs-extra": "^10.1.0",
"jsii": "^0.0.0",
"npm": "^8.17.0",
"npm": "^8.18.0",
"tar": "^6.1.11",
"typescript": "~3.9.10",
"yargs": "^16.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"jsii-pacmak": "^0.0.0",
"pyright": "^1.1.267"
"pyright": "^1.1.268"
}
}
16 changes: 8 additions & 8 deletions packages/@jsii/python-runtime/src/jsii/_kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import itertools
from types import FunctionType, MethodType, BuiltinFunctionType, LambdaType

from typing import cast, Any, List, Optional, Sequence, Type
from typing import Callable, cast, Any, List, Optional, Sequence, Type

import functools

Expand Down Expand Up @@ -129,7 +129,7 @@ def _get_overides(klass: Type, obj: Any) -> List[Override]:
return overrides


def _recursize_dereference(kernel, d):
def _recursize_dereference(kernel: "Kernel", d: Any) -> Any:
if isinstance(d, dict):
return {k: _recursize_dereference(kernel, v) for k, v in d.items()}
elif isinstance(d, list):
Expand All @@ -142,17 +142,17 @@ def _recursize_dereference(kernel, d):
return d


def _dereferenced(fn):
def _dereferenced(fn: Callable) -> Callable:
@functools.wraps(fn)
def wrapped(kernel, *args, **kwargs):
def wrapped(kernel: "Kernel", *args: Any, **kwargs: Any):
return _recursize_dereference(kernel, fn(kernel, *args, **kwargs))

return wrapped


# We need to recurse through our data structure and look for anything that the JSII
# doesn't natively handle. These items will be created as "Object" types in the JSII.
def _make_reference_for_native(kernel, d):
def _make_reference_for_native(kernel: "Kernel", d: Any) -> Any:
if isinstance(d, dict):
return {
"$jsii.map": {
Expand Down Expand Up @@ -206,13 +206,13 @@ def _make_reference_for_native(kernel, d):
return d


def _handle_callback(kernel, callback):
def _handle_callback(kernel: "Kernel", callback: Callback) -> Any:
# need to handle get, set requests here as well as invoke requests
if callback.invoke:
obj = _reference_map.resolve_id(callback.invoke.objref.ref)
method = getattr(obj, callback.cookie)
hydrated_args = [
_recursize_dereference(kernel, a) for a in callback.invoke.args
_recursize_dereference(kernel, a) for a in callback.invoke.args or []
]

# If keyword arguments are accepted, we may need to turn a struct into keywords...
Expand Down Expand Up @@ -253,7 +253,7 @@ def _handle_callback(kernel, callback):


def _callback_till_result(
kernel, response: Callback, response_type: Type[KernelResponse]
kernel: "Kernel", response: Callback, response_type: Type[KernelResponse]
) -> Any:
while isinstance(response, Callback):
try:
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/src/jsii/_kernel/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class EndResponse:
class Callback:

cbid: str
cookie: Optional[str] = None
cookie: str
invoke: Optional[InvokeRequest] = None
get: Optional[GetRequest] = None
set: Optional[SetRequest] = None
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-pacmak/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"pyright": "^1.1.267"
"pyright": "^1.1.268"
},
"keywords": [
"jsii",
Expand Down
Loading

0 comments on commit 283aa56

Please sign in to comment.