From fcc4eee3e3a06a7cdab1e8d52ace34e522c5f75a Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 22 Jun 2020 17:06:08 +0200 Subject: [PATCH 01/18] chore(pacmak/python): format generated code using black (#1738) Make the generated code a little more readable by running it through `black`. This will make this a little nicer for Python developers using the "go to definition" feature of their IDE whith libraries produced by `jsii-pacmak`. Fixes #379 Fixes aws/aws-cdk#8532 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii-pacmak/lib/targets/python.ts | 36 +- .../python/setup.py | 10 +- .../scope/jsii_calc_base_of_base/__init__.py | 19 +- .../jsii_calc_base_of_base/_jsii/__init__.py | 7 +- .../expected.jsii-calc-base/python/setup.py | 10 +- .../src/scope/jsii_calc_base/__init__.py | 29 +- .../scope/jsii_calc_base/_jsii/__init__.py | 4 +- .../expected.jsii-calc-lib/python/setup.py | 10 +- .../src/scope/jsii_calc_lib/__init__.py | 111 +- .../src/scope/jsii_calc_lib/_jsii/__init__.py | 4 +- .../custom_submodule_name/__init__.py | 30 +- .../test/expected.jsii-calc/python/setup.py | 10 +- .../python/src/jsii_calc/__init__.py | 1916 +++++++++++++---- .../python/src/jsii_calc/_jsii/__init__.py | 4 +- .../src/jsii_calc/composition/__init__.py | 16 +- .../__init__.py | 12 +- .../__init__.py | 22 +- .../__init__.py | 16 +- .../src/jsii_calc/python_self/__init__.py | 31 +- .../src/jsii_calc/submodule/__init__.py | 7 +- .../submodule/back_references/__init__.py | 18 +- .../src/jsii_calc/submodule/child/__init__.py | 48 +- .../submodule/nested_submodule/__init__.py | 10 +- .../deeply_nested/__init__.py | 9 +- 24 files changed, 1810 insertions(+), 579 deletions(-) diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index d3e37f7c0a..8c5b7ffba9 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -1,6 +1,8 @@ import { CodeMaker, toSnakeCase } from 'codemaker'; import * as escapeStringRegexp from 'escape-string-regexp'; +import * as fs from 'fs-extra'; import * as reflect from 'jsii-reflect'; +import * as os from 'os'; import * as path from 'path'; import * as spec from '@jsii/spec'; import { Stability } from '@jsii/spec'; @@ -40,13 +42,35 @@ export default class Python extends Target { this.generator = new PythonGenerator(options.rosetta); } - public async build(sourceDir: string, outDir: string): Promise { - // Format our code to make it easier to read, we do this here instead of trying - // to do it in the code generation phase, because attempting to mix style and - // function makes the code generation harder to maintain and read, while doing - // this here is easy. - // await shell("black", ["--py36", sourceDir], {}); + public async generateCode(outDir: string, tarball: string): Promise { + await super.generateCode(outDir, tarball); + // We'll just run "black" on that now, to make the generated code a little more readable. + const blackRoot = await fs.mkdtemp( + path.join(os.tmpdir(), 'jsii-pacmak-black-'), + ); + try { + await shell('python3', ['-m', 'venv', path.join(blackRoot, '.env')], { + cwd: blackRoot, + }); + await shell( + path.join(blackRoot, '.env', 'bin', 'pip'), + ['install', 'black'], + { cwd: blackRoot }, + ); + await shell( + path.join(blackRoot, '.env', 'bin', 'black'), + ['--py36', outDir], + { + cwd: outDir, + }, + ); + } finally { + await fs.remove(blackRoot); + } + } + + public async build(sourceDir: string, outDir: string): Promise { // Actually package up our code, both as a sdist and a wheel for publishing. await shell('python3', ['setup.py', 'sdist', '--dist-dir', outDir], { cwd: sourceDir, diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py index 188f8f4076..4324f9ed11 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py @@ -1,7 +1,8 @@ import json import setuptools -kwargs = json.loads(""" +kwargs = json.loads( + """ { "name": "scope.jsii-calc-base-of-base", "version": "0.0.0", @@ -45,10 +46,11 @@ "License :: OSI Approved" ] } -""") +""" +) -with open('README.md') as fp: - kwargs['long_description'] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py index 782e46c452..d2b682a31d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py @@ -22,8 +22,9 @@ def foo(self) -> None: ... -class _IVeryBaseInterfaceProxy(): +class _IVeryBaseInterfaceProxy: __jsii_type__ = "@scope/jsii-calc-base-of-base.IVeryBaseInterface" + @jsii.member(jsii_name="foo") def foo(self) -> None: return jsii.invoke(self, "foo", []) @@ -38,19 +39,23 @@ def hey(self) -> jsii.Number: return jsii.invoke(self, "hey", []) -@jsii.data_type(jsii_type="@scope/jsii-calc-base-of-base.VeryBaseProps", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class VeryBaseProps(): +@jsii.data_type( + jsii_type="@scope/jsii-calc-base-of-base.VeryBaseProps", + jsii_struct_bases=[], + name_mapping={"foo": "foo"}, +) +class VeryBaseProps: def __init__(self, *, foo: "Very") -> None: """ :param foo: - """ self._values = { - 'foo': foo, + "foo": foo, } @builtins.property def foo(self) -> "Very": - return self._values.get('foo') + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59,7 +64,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'VeryBaseProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "VeryBaseProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py index 32576a97c8..90b633e998 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py @@ -8,7 +8,12 @@ import jsii.compat import publication -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base-of-base", "0.0.0", __name__[0:-6], "jsii-calc-base-of-base@0.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load( + "@scope/jsii-calc-base-of-base", + "0.0.0", + __name__[0:-6], + "jsii-calc-base-of-base@0.0.0.jsii.tgz", +) __all__ = [ "__jsii_assembly__", diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py index 31a67e967e..f608ca3c5a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py @@ -1,7 +1,8 @@ import json import setuptools -kwargs = json.loads(""" +kwargs = json.loads( + """ { "name": "scope.jsii-calc-base", "version": "0.0.0", @@ -46,10 +47,11 @@ "License :: OSI Approved" ] } -""") +""" +) -with open('README.md') as fp: - kwargs['long_description'] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py index 400ee65757..683f41190d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py @@ -15,6 +15,7 @@ class Base(metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-base.Base"): """A base class.""" + @builtins.staticmethod def __jsii_proxy_class__(): return _BaseProxy @@ -34,7 +35,12 @@ def type_name(self) -> typing.Any: class _BaseProxy(Base): pass -@jsii.data_type(jsii_type="@scope/jsii-calc-base.BaseProps", jsii_struct_bases=[scope.jsii_calc_base_of_base.VeryBaseProps], name_mapping={'foo': 'foo', 'bar': 'bar'}) + +@jsii.data_type( + jsii_type="@scope/jsii-calc-base.BaseProps", + jsii_struct_bases=[scope.jsii_calc_base_of_base.VeryBaseProps], + name_mapping={"foo": "foo", "bar": "bar"}, +) class BaseProps(scope.jsii_calc_base_of_base.VeryBaseProps): def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str) -> None: """ @@ -42,17 +48,17 @@ def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str) -> None: :param bar: - """ self._values = { - 'foo': foo, - 'bar': bar, + "foo": foo, + "bar": bar, } @builtins.property def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get('foo') + return self._values.get("foo") @builtins.property def bar(self) -> str: - return self._values.get('bar') + return self._values.get("bar") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -61,11 +67,15 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'BaseProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "BaseProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) @jsii.interface(jsii_type="@scope/jsii-calc-base.IBaseInterface") -class IBaseInterface(scope.jsii_calc_base_of_base.IVeryBaseInterface, jsii.compat.Protocol): +class IBaseInterface( + scope.jsii_calc_base_of_base.IVeryBaseInterface, jsii.compat.Protocol +): @builtins.staticmethod def __jsii_proxy_class__(): return _IBaseInterfaceProxy @@ -75,8 +85,11 @@ def bar(self) -> None: ... -class _IBaseInterfaceProxy(jsii.proxy_for(scope.jsii_calc_base_of_base.IVeryBaseInterface)): +class _IBaseInterfaceProxy( + jsii.proxy_for(scope.jsii_calc_base_of_base.IVeryBaseInterface) +): __jsii_type__ = "@scope/jsii-calc-base.IBaseInterface" + @jsii.member(jsii_name="bar") def bar(self) -> None: return jsii.invoke(self, "bar", []) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py index 522cf2bdb8..d30dbc6e00 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py @@ -10,7 +10,9 @@ import scope.jsii_calc_base_of_base._jsii -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base", "0.0.0", __name__[0:-6], "jsii-calc-base@0.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load( + "@scope/jsii-calc-base", "0.0.0", __name__[0:-6], "jsii-calc-base@0.0.0.jsii.tgz" +) __all__ = [ "__jsii_assembly__", diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py index 27f201c7ad..0b2215d3ba 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py @@ -1,7 +1,8 @@ import json import setuptools -kwargs = json.loads(""" +kwargs = json.loads( + """ { "name": "scope.jsii-calc-lib", "version": "0.0.0", @@ -49,10 +50,11 @@ "License :: OSI Approved" ] } -""") +""" +) -with open('README.md') as fp: - kwargs['long_description'] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py index dc854a5f87..a367b1995f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py @@ -22,6 +22,7 @@ class EnumFromScopedModule(enum.Enum): stability :stability: deprecated """ + VALUE1 = "VALUE1" """ stability @@ -33,6 +34,7 @@ class EnumFromScopedModule(enum.Enum): :stability: deprecated """ + @jsii.interface(jsii_type="@scope/jsii-calc-lib.IDoublable") class IDoublable(jsii.compat.Protocol): """The general contract for a concrete number. @@ -40,6 +42,7 @@ class IDoublable(jsii.compat.Protocol): stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IDoublableProxy @@ -54,13 +57,15 @@ def double_value(self) -> jsii.Number: ... -class _IDoublableProxy(): +class _IDoublableProxy: """The general contract for a concrete number. stability :stability: deprecated """ + __jsii_type__ = "@scope/jsii-calc-lib.IDoublable" + @builtins.property @jsii.member(jsii_name="doubleValue") def double_value(self) -> jsii.Number: @@ -81,6 +86,7 @@ class IFriendly(jsii.compat.Protocol): stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IFriendlyProxy @@ -95,7 +101,7 @@ def hello(self) -> str: ... -class _IFriendlyProxy(): +class _IFriendlyProxy: """Applies to classes that are considered friendly. These classes can be greeted with @@ -104,7 +110,9 @@ class _IFriendlyProxy(): stability :stability: deprecated """ + __jsii_type__ = "@scope/jsii-calc-lib.IFriendly" + @jsii.member(jsii_name="hello") def hello(self) -> str: """Say hello! @@ -125,6 +133,7 @@ class IThreeLevelsInterface(scope.jsii_calc_base.IBaseInterface, jsii.compat.Pro stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IThreeLevelsInterfaceProxy @@ -147,7 +156,9 @@ class _IThreeLevelsInterfaceProxy(jsii.proxy_for(scope.jsii_calc_base.IBaseInter stability :stability: deprecated """ + __jsii_type__ = "@scope/jsii-calc-lib.IThreeLevelsInterface" + @jsii.member(jsii_name="baz") def baz(self) -> None: """ @@ -157,9 +168,23 @@ def baz(self) -> None: return jsii.invoke(self, "baz", []) -@jsii.data_type(jsii_type="@scope/jsii-calc-lib.MyFirstStruct", jsii_struct_bases=[], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional'}) -class MyFirstStruct(): - def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> None: +@jsii.data_type( + jsii_type="@scope/jsii-calc-lib.MyFirstStruct", + jsii_struct_bases=[], + name_mapping={ + "anumber": "anumber", + "astring": "astring", + "first_optional": "firstOptional", + }, +) +class MyFirstStruct: + def __init__( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> None: """This is the first struct we have created in jsii. :param anumber: An awesome number value. @@ -170,10 +195,11 @@ def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing :stability: deprecated """ self._values = { - 'anumber': anumber, - 'astring': astring, + "anumber": anumber, + "astring": astring, } - if first_optional is not None: self._values["first_optional"] = first_optional + if first_optional is not None: + self._values["first_optional"] = first_optional @builtins.property def anumber(self) -> jsii.Number: @@ -182,7 +208,7 @@ def anumber(self) -> jsii.Number: stability :stability: deprecated """ - return self._values.get('anumber') + return self._values.get("anumber") @builtins.property def astring(self) -> str: @@ -191,7 +217,7 @@ def astring(self) -> str: stability :stability: deprecated """ - return self._values.get('astring') + return self._values.get("astring") @builtins.property def first_optional(self) -> typing.Optional[typing.List[str]]: @@ -199,7 +225,7 @@ def first_optional(self) -> typing.Optional[typing.List[str]]: stability :stability: deprecated """ - return self._values.get('first_optional') + return self._values.get("first_optional") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -208,12 +234,28 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'MyFirstStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="@scope/jsii-calc-lib.StructWithOnlyOptionals", jsii_struct_bases=[], name_mapping={'optional1': 'optional1', 'optional2': 'optional2', 'optional3': 'optional3'}) -class StructWithOnlyOptionals(): - def __init__(self, *, optional1: typing.Optional[str]=None, optional2: typing.Optional[jsii.Number]=None, optional3: typing.Optional[bool]=None) -> None: + return "MyFirstStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="@scope/jsii-calc-lib.StructWithOnlyOptionals", + jsii_struct_bases=[], + name_mapping={ + "optional1": "optional1", + "optional2": "optional2", + "optional3": "optional3", + }, +) +class StructWithOnlyOptionals: + def __init__( + self, + *, + optional1: typing.Optional[str] = None, + optional2: typing.Optional[jsii.Number] = None, + optional3: typing.Optional[bool] = None, + ) -> None: """This is a struct with only optional properties. :param optional1: The first optional! @@ -223,11 +265,13 @@ def __init__(self, *, optional1: typing.Optional[str]=None, optional2: typing.Op stability :stability: deprecated """ - self._values = { - } - if optional1 is not None: self._values["optional1"] = optional1 - if optional2 is not None: self._values["optional2"] = optional2 - if optional3 is not None: self._values["optional3"] = optional3 + self._values = {} + if optional1 is not None: + self._values["optional1"] = optional1 + if optional2 is not None: + self._values["optional2"] = optional2 + if optional3 is not None: + self._values["optional3"] = optional3 @builtins.property def optional1(self) -> typing.Optional[str]: @@ -236,7 +280,7 @@ def optional1(self) -> typing.Optional[str]: stability :stability: deprecated """ - return self._values.get('optional1') + return self._values.get("optional1") @builtins.property def optional2(self) -> typing.Optional[jsii.Number]: @@ -244,7 +288,7 @@ def optional2(self) -> typing.Optional[jsii.Number]: stability :stability: deprecated """ - return self._values.get('optional2') + return self._values.get("optional2") @builtins.property def optional3(self) -> typing.Optional[bool]: @@ -252,7 +296,7 @@ def optional3(self) -> typing.Optional[bool]: stability :stability: deprecated """ - return self._values.get('optional3') + return self._values.get("optional3") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -261,15 +305,22 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructWithOnlyOptionals(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "StructWithOnlyOptionals(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class Value(scope.jsii_calc_base.Base, metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-lib.Value"): +class Value( + scope.jsii_calc_base.Base, + metaclass=jsii.JSIIAbstractClass, + jsii_type="@scope/jsii-calc-lib.Value", +): """Abstract class which represents a numeric value. stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _ValueProxy @@ -317,6 +368,7 @@ class Number(Value, metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.Num stability :stability: deprecated """ + def __init__(self, value: jsii.Number) -> None: """Creates a Number object. @@ -348,12 +400,15 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -class Operation(Value, metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-lib.Operation"): +class Operation( + Value, metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-lib.Operation" +): """Represents an operation on values. stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _OperationProxy diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py index 2c11f132cd..6cb9cd7a1a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py @@ -11,7 +11,9 @@ import scope.jsii_calc_base._jsii import scope.jsii_calc_base_of_base._jsii -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-lib", "0.0.0", __name__[0:-6], "jsii-calc-lib@0.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load( + "@scope/jsii-calc-lib", "0.0.0", __name__[0:-6], "jsii-calc-lib@0.0.0.jsii.tgz" +) __all__ = [ "__jsii_assembly__", diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py index e7962846f1..db94b547ea 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py @@ -17,6 +17,7 @@ class IReflectable(jsii.compat.Protocol): stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IReflectableProxy @@ -31,12 +32,14 @@ def entries(self) -> typing.List["ReflectableEntry"]: ... -class _IReflectableProxy(): +class _IReflectableProxy: """ stability :stability: deprecated """ + __jsii_type__ = "@scope/jsii-calc-lib.submodule.IReflectable" + @builtins.property @jsii.member(jsii_name="entries") def entries(self) -> typing.List["ReflectableEntry"]: @@ -47,8 +50,12 @@ def entries(self) -> typing.List["ReflectableEntry"]: return jsii.get(self, "entries") -@jsii.data_type(jsii_type="@scope/jsii-calc-lib.submodule.ReflectableEntry", jsii_struct_bases=[], name_mapping={'key': 'key', 'value': 'value'}) -class ReflectableEntry(): +@jsii.data_type( + jsii_type="@scope/jsii-calc-lib.submodule.ReflectableEntry", + jsii_struct_bases=[], + name_mapping={"key": "key", "value": "value"}, +) +class ReflectableEntry: def __init__(self, *, key: str, value: typing.Any) -> None: """ :param key: @@ -58,8 +65,8 @@ def __init__(self, *, key: str, value: typing.Any) -> None: :stability: deprecated """ self._values = { - 'key': key, - 'value': value, + "key": key, + "value": value, } @builtins.property @@ -68,7 +75,7 @@ def key(self) -> str: stability :stability: deprecated """ - return self._values.get('key') + return self._values.get("key") @builtins.property def value(self) -> typing.Any: @@ -76,7 +83,7 @@ def value(self) -> typing.Any: stability :stability: deprecated """ - return self._values.get('value') + return self._values.get("value") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -85,14 +92,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ReflectableEntry(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ReflectableEntry(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class Reflector(metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.submodule.Reflector"): +class Reflector( + metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.submodule.Reflector" +): """ stability :stability: deprecated """ + def __init__(self) -> None: """ stability diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py index 80dbe4a1d6..fdc3939098 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py @@ -1,7 +1,8 @@ import json import setuptools -kwargs = json.loads(""" +kwargs = json.loads( + """ { "name": "jsii-calc", "version": "0.0.0", @@ -59,10 +60,11 @@ "License :: OSI Approved" ] } -""") +""" +) -with open('README.md') as fp: - kwargs['long_description'] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index 5c0b8e2c0e..c0a2bf88b2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -43,14 +43,17 @@ import scope.jsii_calc_base_of_base import scope.jsii_calc_lib import scope.jsii_calc_lib.custom_submodule_name -from .composition import (CompositeOperation as _CompositeOperation_1c4d123b) +from .composition import CompositeOperation as _CompositeOperation_1c4d123b -class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase"): +class AbstractClassBase( + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase" +): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractClassBaseProxy @@ -80,11 +83,14 @@ def abstract_property(self) -> str: return jsii.get(self, "abstractProperty") -class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner"): +class AbstractClassReturner( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AbstractClassReturner, self, []) @@ -114,12 +120,15 @@ def return_abstract_from_property(self) -> "AbstractClassBase": return jsii.get(self, "returnAbstractFromProperty") -class AbstractSuite(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"): +class AbstractSuite( + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite" +): """Ensures abstract members implementations correctly register overrides in various languages. stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractSuiteProxy @@ -199,6 +208,7 @@ class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AllTypes, self, []) @@ -353,7 +363,9 @@ def map_property(self) -> typing.Mapping[str, scope.jsii_calc_lib.Number]: return jsii.get(self, "mapProperty") @map_property.setter - def map_property(self, value: typing.Mapping[str, scope.jsii_calc_lib.Number]) -> None: + def map_property( + self, value: typing.Mapping[str, scope.jsii_calc_lib.Number] + ) -> None: jsii.set(self, "mapProperty", value) @builtins.property @@ -384,7 +396,9 @@ def string_property(self, value: str) -> None: @builtins.property @jsii.member(jsii_name="unionArrayProperty") - def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: + def union_array_property( + self, + ) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: """ stability :stability: experimental @@ -392,12 +406,18 @@ def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.js return jsii.get(self, "unionArrayProperty") @union_array_property.setter - def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]) -> None: + def union_array_property( + self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]] + ) -> None: jsii.set(self, "unionArrayProperty", value) @builtins.property @jsii.member(jsii_name="unionMapProperty") - def union_map_property(self) -> typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: + def union_map_property( + self, + ) -> typing.Mapping[ + str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] + ]: """ stability :stability: experimental @@ -405,12 +425,19 @@ def union_map_property(self) -> typing.Mapping[str, typing.Union[str, jsii.Numbe return jsii.get(self, "unionMapProperty") @union_map_property.setter - def union_map_property(self, value: typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]) -> None: + def union_map_property( + self, + value: typing.Mapping[ + str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] + ], + ) -> None: jsii.set(self, "unionMapProperty", value) @builtins.property @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: + def union_property( + self, + ) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: """ stability :stability: experimental @@ -418,7 +445,10 @@ def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsi return jsii.get(self, "unionProperty") @union_property.setter - def union_property(self, value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]) -> None: + def union_property( + self, + value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number], + ) -> None: jsii.set(self, "unionProperty", value) @builtins.property @@ -480,6 +510,7 @@ class AllTypesEnum(enum.Enum): stability :stability: experimental """ + MY_ENUM_VALUE = "MY_ENUM_VALUE" """ stability @@ -496,11 +527,15 @@ class AllTypesEnum(enum.Enum): :stability: experimental """ -class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames"): + +class AllowedMethodNames( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AllowedMethodNames, self, []) @@ -551,12 +586,17 @@ def set_foo(self, _x: str, _y: jsii.Number) -> None: return jsii.invoke(self, "setFoo", [_x, _y]) -class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters"): +class AmbiguousParameters( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters" +): """ stability :stability: experimental """ - def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: + + def __init__( + self, scope_: "Bell", *, scope: str, props: typing.Optional[bool] = None + ) -> None: """ :param scope_: - :param scope: @@ -588,11 +628,14 @@ def scope(self) -> "Bell": return jsii.get(self, "scope") -class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods"): +class AsyncVirtualMethods( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AsyncVirtualMethods, self, []) @@ -658,6 +701,7 @@ class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Augmentable stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AugmentableClass, self, []) @@ -683,22 +727,30 @@ class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(BaseJsii976, self, []) @jsii.implements(scope.jsii_calc_lib.IFriendly) -class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"): +class BinaryOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.BinaryOperation", +): """Represents an operation with two operands. stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _BinaryOperationProxy - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: """Creates a BinaryOperation. :param lhs: Left-hand side operand. @@ -739,10 +791,17 @@ def rhs(self) -> scope.jsii_calc_lib.Value: return jsii.get(self, "rhs") -class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): +class _BinaryOperationProxy( + BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): pass -class Calculator(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): + +class Calculator( + _CompositeOperation_1c4d123b, + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.Calculator", +): """A calculator which maintains a current value and allows adding operations. Here's how you use it:: @@ -766,7 +825,13 @@ class Calculator(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_typ calculator.mul(3) print(calculator.expression.value) """ - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: + + def __init__( + self, + *, + initial_value: typing.Optional[jsii.Number] = None, + maximum_value: typing.Optional[jsii.Number] = None, + ) -> None: """Creates a Calculator object. :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 @@ -775,7 +840,9 @@ def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_ stability :stability: experimental """ - props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value) + props = CalculatorProps( + initial_value=initial_value, maximum_value=maximum_value + ) jsii.create(Calculator, self, [props]) @@ -852,7 +919,9 @@ def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: @builtins.property @jsii.member(jsii_name="operationsMap") - def operations_map(self) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]: + def operations_map( + self, + ) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]: """A map of per operation name of all operations performed. stability @@ -890,7 +959,9 @@ def max_value(self, value: typing.Optional[jsii.Number]) -> None: @builtins.property @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]: + def union_property( + self, + ) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]: """Example of a property that accepts a union of types. stability @@ -899,13 +970,24 @@ def union_property(self) -> typing.Optional[typing.Union["Add", "Multiply", "Pow return jsii.get(self, "unionProperty") @union_property.setter - def union_property(self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]]) -> None: + def union_property( + self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]] + ) -> None: jsii.set(self, "unionProperty", value) -@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) -class CalculatorProps(): - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.CalculatorProps", + jsii_struct_bases=[], + name_mapping={"initial_value": "initialValue", "maximum_value": "maximumValue"}, +) +class CalculatorProps: + def __init__( + self, + *, + initial_value: typing.Optional[jsii.Number] = None, + maximum_value: typing.Optional[jsii.Number] = None, + ) -> None: """Properties for Calculator. :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 @@ -914,10 +996,11 @@ def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_ stability :stability: experimental """ - self._values = { - } - if initial_value is not None: self._values["initial_value"] = initial_value - if maximum_value is not None: self._values["maximum_value"] = maximum_value + self._values = {} + if initial_value is not None: + self._values["initial_value"] = initial_value + if maximum_value is not None: + self._values["maximum_value"] = maximum_value @builtins.property def initial_value(self) -> typing.Optional[jsii.Number]: @@ -931,7 +1014,7 @@ def initial_value(self) -> typing.Optional[jsii.Number]: stability :stability: experimental """ - return self._values.get('initial_value') + return self._values.get("initial_value") @builtins.property def maximum_value(self) -> typing.Optional[jsii.Number]: @@ -943,7 +1026,7 @@ def maximum_value(self) -> typing.Optional[jsii.Number]: stability :stability: experimental """ - return self._values.get('maximum_value') + return self._values.get("maximum_value") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -952,14 +1035,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "CalculatorProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections"): +class ClassWithCollections( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections" +): """ stability :stability: experimental """ + def __init__(self, map: typing.Mapping[str, str], array: typing.List[str]) -> None: """ :param map: - @@ -1057,15 +1145,19 @@ class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs" def an_example(): pass """ + def __init__(self) -> None: jsii.create(ClassWithDocs, self, []) -class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords"): +class ClassWithJavaReservedWords( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords" +): """ stability :stability: experimental """ + def __init__(self, int: str) -> None: """ :param int: - @@ -1095,11 +1187,14 @@ def int(self) -> str: return jsii.get(self, "int") -class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty"): +class ClassWithMutableObjectLiteralProperty( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ClassWithMutableObjectLiteralProperty, self, []) @@ -1117,7 +1212,9 @@ def mutable_object(self, value: "IMutableObjectLiteral") -> None: jsii.set(self, "mutableObject", value) -class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson"): +class ConfusingToJackson( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson" +): """This tries to confuse Jackson by having overloaded property setters. see @@ -1125,6 +1222,7 @@ class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Confusing stability :stability: experimental """ + @jsii.member(jsii_name="makeInstance") @builtins.classmethod def make_instance(cls) -> "ConfusingToJackson": @@ -1145,7 +1243,14 @@ def make_struct_instance(cls) -> "ConfusingToJacksonStruct": @builtins.property @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]: + def union_property( + self, + ) -> typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]], + ] + ]: """ stability :stability: experimental @@ -1153,30 +1258,62 @@ def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFr return jsii.get(self, "unionProperty") @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]) -> None: + def union_property( + self, + value: typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[ + typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"] + ], + ] + ], + ) -> None: jsii.set(self, "unionProperty", value) -@jsii.data_type(jsii_type="jsii-calc.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) -class ConfusingToJacksonStruct(): - def __init__(self, *, union_property: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.ConfusingToJacksonStruct", + jsii_struct_bases=[], + name_mapping={"union_property": "unionProperty"}, +) +class ConfusingToJacksonStruct: + def __init__( + self, + *, + union_property: typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[ + typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"] + ], + ] + ] = None, + ) -> None: """ :param union_property: stability :stability: experimental """ - self._values = { - } - if union_property is not None: self._values["union_property"] = union_property + self._values = {} + if union_property is not None: + self._values["union_property"] = union_property @builtins.property - def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]: + def union_property( + self, + ) -> typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]], + ] + ]: """ stability :stability: experimental """ - return self._values.get('union_property') + return self._values.get("union_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1185,14 +1322,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ConfusingToJacksonStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut"): +class ConstructorPassesThisOut( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut" +): """ stability :stability: experimental """ + def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: """ :param consumer: - @@ -1208,6 +1350,7 @@ class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Constructors, self, []) @@ -1275,11 +1418,14 @@ def make_interfaces(cls) -> typing.List["IPublicInterface"]: return jsii.sinvoke(cls, "makeInterfaces", []) -class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface"): +class ConsumePureInterface( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface" +): """ stability :stability: experimental """ + def __init__(self, delegate: "IStructReturningDelegate") -> None: """ :param delegate: - @@ -1298,7 +1444,9 @@ def work_it_baby(self) -> "StructB": return jsii.invoke(self, "workItBaby", []) -class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell"): +class ConsumerCanRingBell( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell" +): """Test calling back to consumers that implement interfaces. Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call @@ -1307,6 +1455,7 @@ class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Consumer stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ConsumerCanRingBell, self, []) @@ -1419,11 +1568,14 @@ def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: return jsii.invoke(self, "whenTypedAsClass", [ringer]) -class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem"): +class ConsumersOfThisCrazyTypeSystem( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) @@ -1438,7 +1590,9 @@ def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> st return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) @jsii.member(jsii_name="consumeNonInternalInterface") - def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: + def consume_non_internal_interface( + self, obj: "INonInternalInterface" + ) -> typing.Any: """ :param obj: - @@ -1454,6 +1608,7 @@ class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): stability :stability: experimental """ + def __init__(self) -> None: """ stability @@ -1462,7 +1617,13 @@ def __init__(self) -> None: jsii.create(DataRenderer, self, []) @jsii.member(jsii_name="render") - def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: + def render( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> str: """ :param anumber: An awesome number value. :param astring: A string value. @@ -1471,7 +1632,9 @@ def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.O stability :stability: experimental """ - data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + data = scope.jsii_calc_lib.MyFirstStruct( + anumber=anumber, astring=astring, first_optional=first_optional + ) return jsii.invoke(self, "render", [data]) @@ -1496,12 +1659,20 @@ def render_map(self, map: typing.Mapping[str, typing.Any]) -> str: return jsii.invoke(self, "renderMap", [map]) -class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument"): +class DefaultedConstructorArgument( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument" +): """ stability :stability: experimental """ - def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + + def __init__( + self, + arg1: typing.Optional[jsii.Number] = None, + arg2: typing.Optional[str] = None, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: """ :param arg1: - :param arg2: - @@ -1549,6 +1720,7 @@ class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate98 stability :stability: experimental """ + def __init__(self) -> None: """ stability @@ -1585,7 +1757,10 @@ class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedCl stability :stability: deprecated """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: """ :param readonly_string: - :param mutable_number: - @@ -1647,6 +1822,7 @@ class DeprecatedEnum(enum.Enum): stability :stability: deprecated """ + OPTION_A = "OPTION_A" """ deprecated @@ -1664,8 +1840,13 @@ class DeprecatedEnum(enum.Enum): :stability: deprecated """ -@jsii.data_type(jsii_type="jsii-calc.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class DeprecatedStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.DeprecatedStruct", + jsii_struct_bases=[], + name_mapping={"readonly_property": "readonlyProperty"}, +) +class DeprecatedStruct: def __init__(self, *, readonly_property: str) -> None: """ :param readonly_property: @@ -1677,7 +1858,7 @@ def __init__(self, *, readonly_property: str) -> None: :stability: deprecated """ self._values = { - 'readonly_property': readonly_property, + "readonly_property": readonly_property, } @builtins.property @@ -1689,7 +1870,7 @@ def readonly_property(self) -> str: stability :stability: deprecated """ - return self._values.get('readonly_property') + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1698,12 +1879,42 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) + return "DeprecatedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.DerivedStruct", + jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], + name_mapping={ + "anumber": "anumber", + "astring": "astring", + "first_optional": "firstOptional", + "another_required": "anotherRequired", + "bool": "bool", + "non_primitive": "nonPrimitive", + "another_optional": "anotherOptional", + "optional_any": "optionalAny", + "optional_array": "optionalArray", + }, +) class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): - def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None) -> None: + def __init__( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + another_required: datetime.datetime, + bool: bool, + non_primitive: "DoubleTrouble", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + ) -> None: """A struct which derives from another struct. :param anumber: An awesome number value. @@ -1720,16 +1931,20 @@ def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing :stability: experimental """ self._values = { - 'anumber': anumber, - 'astring': astring, - 'another_required': another_required, - 'bool': bool, - 'non_primitive': non_primitive, + "anumber": anumber, + "astring": astring, + "another_required": another_required, + "bool": bool, + "non_primitive": non_primitive, } - if first_optional is not None: self._values["first_optional"] = first_optional - if another_optional is not None: self._values["another_optional"] = another_optional - if optional_any is not None: self._values["optional_any"] = optional_any - if optional_array is not None: self._values["optional_array"] = optional_array + if first_optional is not None: + self._values["first_optional"] = first_optional + if another_optional is not None: + self._values["another_optional"] = another_optional + if optional_any is not None: + self._values["optional_any"] = optional_any + if optional_array is not None: + self._values["optional_array"] = optional_array @builtins.property def anumber(self) -> jsii.Number: @@ -1738,7 +1953,7 @@ def anumber(self) -> jsii.Number: stability :stability: deprecated """ - return self._values.get('anumber') + return self._values.get("anumber") @builtins.property def astring(self) -> str: @@ -1747,7 +1962,7 @@ def astring(self) -> str: stability :stability: deprecated """ - return self._values.get('astring') + return self._values.get("astring") @builtins.property def first_optional(self) -> typing.Optional[typing.List[str]]: @@ -1755,7 +1970,7 @@ def first_optional(self) -> typing.Optional[typing.List[str]]: stability :stability: deprecated """ - return self._values.get('first_optional') + return self._values.get("first_optional") @builtins.property def another_required(self) -> datetime.datetime: @@ -1763,7 +1978,7 @@ def another_required(self) -> datetime.datetime: stability :stability: experimental """ - return self._values.get('another_required') + return self._values.get("another_required") @builtins.property def bool(self) -> bool: @@ -1771,7 +1986,7 @@ def bool(self) -> bool: stability :stability: experimental """ - return self._values.get('bool') + return self._values.get("bool") @builtins.property def non_primitive(self) -> "DoubleTrouble": @@ -1780,16 +1995,18 @@ def non_primitive(self) -> "DoubleTrouble": stability :stability: experimental """ - return self._values.get('non_primitive') + return self._values.get("non_primitive") @builtins.property - def another_optional(self) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]: + def another_optional( + self, + ) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]: """This is optional. stability :stability: experimental """ - return self._values.get('another_optional') + return self._values.get("another_optional") @builtins.property def optional_any(self) -> typing.Any: @@ -1797,7 +2014,7 @@ def optional_any(self) -> typing.Any: stability :stability: experimental """ - return self._values.get('optional_any') + return self._values.get("optional_any") @builtins.property def optional_array(self) -> typing.Optional[typing.List[str]]: @@ -1805,7 +2022,7 @@ def optional_array(self) -> typing.Optional[typing.List[str]]: stability :stability: experimental """ - return self._values.get('optional_array') + return self._values.get("optional_array") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1814,11 +2031,17 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "DerivedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) -class DiamondInheritanceBaseLevelStruct(): +@jsii.data_type( + jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", + jsii_struct_bases=[], + name_mapping={"base_level_property": "baseLevelProperty"}, +) +class DiamondInheritanceBaseLevelStruct: def __init__(self, *, base_level_property: str) -> None: """ :param base_level_property: @@ -1827,7 +2050,7 @@ def __init__(self, *, base_level_property: str) -> None: :stability: experimental """ self._values = { - 'base_level_property': base_level_property, + "base_level_property": base_level_property, } @builtins.property @@ -1836,7 +2059,7 @@ def base_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('base_level_property') + return self._values.get("base_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1845,12 +2068,23 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) + return "DiamondInheritanceBaseLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", + jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], + name_mapping={ + "base_level_property": "baseLevelProperty", + "first_mid_level_property": "firstMidLevelProperty", + }, +) class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str) -> None: + def __init__( + self, *, base_level_property: str, first_mid_level_property: str + ) -> None: """ :param base_level_property: :param first_mid_level_property: @@ -1859,8 +2093,8 @@ def __init__(self, *, base_level_property: str, first_mid_level_property: str) - :stability: experimental """ self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, + "base_level_property": base_level_property, + "first_mid_level_property": first_mid_level_property, } @builtins.property @@ -1869,7 +2103,7 @@ def base_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('base_level_property') + return self._values.get("base_level_property") @builtins.property def first_mid_level_property(self) -> str: @@ -1877,7 +2111,7 @@ def first_mid_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('first_mid_level_property') + return self._values.get("first_mid_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1886,12 +2120,23 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) + return "DiamondInheritanceFirstMidLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", + jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], + name_mapping={ + "base_level_property": "baseLevelProperty", + "second_mid_level_property": "secondMidLevelProperty", + }, +) class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, second_mid_level_property: str) -> None: + def __init__( + self, *, base_level_property: str, second_mid_level_property: str + ) -> None: """ :param base_level_property: :param second_mid_level_property: @@ -1900,8 +2145,8 @@ def __init__(self, *, base_level_property: str, second_mid_level_property: str) :stability: experimental """ self._values = { - 'base_level_property': base_level_property, - 'second_mid_level_property': second_mid_level_property, + "base_level_property": base_level_property, + "second_mid_level_property": second_mid_level_property, } @builtins.property @@ -1910,7 +2155,7 @@ def base_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('base_level_property') + return self._values.get("base_level_property") @builtins.property def second_mid_level_property(self) -> str: @@ -1918,7 +2163,7 @@ def second_mid_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('second_mid_level_property') + return self._values.get("second_mid_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1927,12 +2172,35 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) -class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str) -> None: + return "DiamondInheritanceSecondMidLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", + jsii_struct_bases=[ + DiamondInheritanceFirstMidLevelStruct, + DiamondInheritanceSecondMidLevelStruct, + ], + name_mapping={ + "base_level_property": "baseLevelProperty", + "first_mid_level_property": "firstMidLevelProperty", + "second_mid_level_property": "secondMidLevelProperty", + "top_level_property": "topLevelProperty", + }, +) +class DiamondInheritanceTopLevelStruct( + DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct +): + def __init__( + self, + *, + base_level_property: str, + first_mid_level_property: str, + second_mid_level_property: str, + top_level_property: str, + ) -> None: """ :param base_level_property: :param first_mid_level_property: @@ -1943,10 +2211,10 @@ def __init__(self, *, base_level_property: str, first_mid_level_property: str, s :stability: experimental """ self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - 'second_mid_level_property': second_mid_level_property, - 'top_level_property': top_level_property, + "base_level_property": base_level_property, + "first_mid_level_property": first_mid_level_property, + "second_mid_level_property": second_mid_level_property, + "top_level_property": top_level_property, } @builtins.property @@ -1955,7 +2223,7 @@ def base_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('base_level_property') + return self._values.get("base_level_property") @builtins.property def first_mid_level_property(self) -> str: @@ -1963,7 +2231,7 @@ def first_mid_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('first_mid_level_property') + return self._values.get("first_mid_level_property") @builtins.property def second_mid_level_property(self) -> str: @@ -1971,7 +2239,7 @@ def second_mid_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('second_mid_level_property') + return self._values.get("second_mid_level_property") @builtins.property def top_level_property(self) -> str: @@ -1979,7 +2247,7 @@ def top_level_property(self) -> str: stability :stability: experimental """ - return self._values.get('top_level_property') + return self._values.get("top_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1988,10 +2256,14 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "DiamondInheritanceTopLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource"): +class DisappointingCollectionSource( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource" +): """Verifies that null/undefined can be returned for optional collections. This source of collections is disappointing - it'll always give you nothing :( @@ -1999,6 +2271,7 @@ class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-cal stability :stability: experimental """ + @jsii.python.classproperty @jsii.member(jsii_name="maybeList") def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: @@ -2024,11 +2297,14 @@ def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str, jsii.Number]]: return jsii.sget(cls, "maybeMap") -class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates"): +class DoNotOverridePrivates( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(DoNotOverridePrivates, self, []) @@ -2059,17 +2335,25 @@ def private_property_value(self) -> str: return jsii.invoke(self, "privatePropertyValue", []) -class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional"): +class DoNotRecognizeAnyAsOptional( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional" +): """jsii#284: do not recognize "any" as an optional argument. stability :stability: experimental """ + def __init__(self) -> None: jsii.create(DoNotRecognizeAnyAsOptional, self, []) @jsii.member(jsii_name="method") - def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: + def method( + self, + _required_any: typing.Any, + _optional_any: typing.Any = None, + _optional_string: typing.Optional[str] = None, + ) -> None: """ :param _required_any: - :param _optional_any: - @@ -2078,7 +2362,9 @@ def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _opt stability :stability: experimental """ - return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) + return jsii.invoke( + self, "method", [_required_any, _optional_any, _optional_string] + ) class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"): @@ -2089,11 +2375,12 @@ class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedCl Multiple paragraphs are separated by an empty line. """ + def __init__(self) -> None: jsii.create(DocumentedClass, self, []) @jsii.member(jsii_name="greet") - def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: + def greet(self, *, name: typing.Optional[str] = None) -> jsii.Number: """Greet the indicated person. This will print out a friendly greeting intended for @@ -2118,16 +2405,22 @@ def hola(self) -> None: return jsii.invoke(self, "hola", []) -class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional"): +class DontComplainAboutVariadicAfterOptional( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(DontComplainAboutVariadicAfterOptional, self, []) @jsii.member(jsii_name="optionalAndVariadic") - def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: + def optional_and_variadic( + self, optional: typing.Optional[str] = None, *things: str + ) -> str: """ :param optional: - :param things: - @@ -2143,6 +2436,7 @@ class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser" stability :stability: experimental """ + @jsii.member(jsii_name="randomIntegerLikeEnum") @builtins.classmethod def random_integer_like_enum(cls) -> "AllTypesEnum": @@ -2162,11 +2456,14 @@ def random_string_like_enum(cls) -> "StringEnum": return jsii.sinvoke(cls, "randomStringLikeEnum", []) -class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues"): +class EraseUndefinedHashValues( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(EraseUndefinedHashValues, self, []) @@ -2207,9 +2504,18 @@ def prop2_is_undefined(cls) -> typing.Mapping[str, typing.Any]: return jsii.sinvoke(cls, "prop2IsUndefined", []) -@jsii.data_type(jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) -class EraseUndefinedHashValuesOptions(): - def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", + jsii_struct_bases=[], + name_mapping={"option1": "option1", "option2": "option2"}, +) +class EraseUndefinedHashValuesOptions: + def __init__( + self, + *, + option1: typing.Optional[str] = None, + option2: typing.Optional[str] = None, + ) -> None: """ :param option1: :param option2: @@ -2217,10 +2523,11 @@ def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Option stability :stability: experimental """ - self._values = { - } - if option1 is not None: self._values["option1"] = option1 - if option2 is not None: self._values["option2"] = option2 + self._values = {} + if option1 is not None: + self._values["option1"] = option1 + if option2 is not None: + self._values["option2"] = option2 @builtins.property def option1(self) -> typing.Optional[str]: @@ -2228,7 +2535,7 @@ def option1(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('option1') + return self._values.get("option1") @builtins.property def option2(self) -> typing.Optional[str]: @@ -2236,7 +2543,7 @@ def option2(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('option2') + return self._values.get("option2") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2245,15 +2552,22 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "EraseUndefinedHashValuesOptions(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass"): +class ExperimentalClass( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass" +): """ stability :stability: experimental """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: """ :param readonly_string: - :param mutable_number: - @@ -2300,6 +2614,7 @@ class ExperimentalEnum(enum.Enum): stability :stability: experimental """ + OPTION_A = "OPTION_A" """ stability @@ -2311,8 +2626,13 @@ class ExperimentalEnum(enum.Enum): :stability: experimental """ -@jsii.data_type(jsii_type="jsii-calc.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class ExperimentalStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.ExperimentalStruct", + jsii_struct_bases=[], + name_mapping={"readonly_property": "readonlyProperty"}, +) +class ExperimentalStruct: def __init__(self, *, readonly_property: str) -> None: """ :param readonly_property: @@ -2321,7 +2641,7 @@ def __init__(self, *, readonly_property: str) -> None: :stability: experimental """ self._values = { - 'readonly_property': readonly_property, + "readonly_property": readonly_property, } @builtins.property @@ -2330,7 +2650,7 @@ def readonly_property(self) -> str: stability :stability: experimental """ - return self._values.get('readonly_property') + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2339,14 +2659,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ExperimentalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass"): +class ExportedBaseClass( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass" +): """ stability :stability: experimental """ + def __init__(self, success: bool) -> None: """ :param success: - @@ -2366,8 +2691,12 @@ def success(self) -> bool: return jsii.get(self, "success") -@jsii.data_type(jsii_type="jsii-calc.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) -class ExtendsInternalInterface(): +@jsii.data_type( + jsii_type="jsii-calc.ExtendsInternalInterface", + jsii_struct_bases=[], + name_mapping={"boom": "boom", "prop": "prop"}, +) +class ExtendsInternalInterface: def __init__(self, *, boom: bool, prop: str) -> None: """ :param boom: @@ -2377,8 +2706,8 @@ def __init__(self, *, boom: bool, prop: str) -> None: :stability: experimental """ self._values = { - 'boom': boom, - 'prop': prop, + "boom": boom, + "prop": prop, } @builtins.property @@ -2387,7 +2716,7 @@ def boom(self) -> bool: stability :stability: experimental """ - return self._values.get('boom') + return self._values.get("boom") @builtins.property def prop(self) -> str: @@ -2395,7 +2724,7 @@ def prop(self) -> str: stability :stability: experimental """ - return self._values.get('prop') + return self._values.get("prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2404,7 +2733,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ExtendsInternalInterface(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass"): @@ -2414,7 +2745,10 @@ class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass" external: :external:: true """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: """ :param readonly_string: - :param mutable_number: - @@ -2471,6 +2805,7 @@ class ExternalEnum(enum.Enum): external: :external:: true """ + OPTION_A = "OPTION_A" """ stability @@ -2486,8 +2821,13 @@ class ExternalEnum(enum.Enum): :external:: true """ -@jsii.data_type(jsii_type="jsii-calc.ExternalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class ExternalStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.ExternalStruct", + jsii_struct_bases=[], + name_mapping={"readonly_property": "readonlyProperty"}, +) +class ExternalStruct: def __init__(self, *, readonly_property: str) -> None: """ :param readonly_property: @@ -2498,7 +2838,7 @@ def __init__(self, *, readonly_property: str) -> None: :external:: true """ self._values = { - 'readonly_property': readonly_property, + "readonly_property": readonly_property, } @builtins.property @@ -2509,7 +2849,7 @@ def readonly_property(self) -> str: external: :external:: true """ - return self._values.get('readonly_property') + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2518,7 +2858,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ExternalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ExternalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"): @@ -2526,11 +2868,26 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs" stability :stability: experimental """ + def __init__(self) -> None: jsii.create(GiveMeStructs, self, []) @jsii.member(jsii_name="derivedToFirst") - def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: + def derived_to_first( + self, + *, + another_required: datetime.datetime, + bool: bool, + non_primitive: "DoubleTrouble", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> scope.jsii_calc_lib.MyFirstStruct: """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. :param another_required: @@ -2546,12 +2903,36 @@ def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, n stability :stability: experimental """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + derived = DerivedStruct( + another_required=another_required, + bool=bool, + non_primitive=non_primitive, + another_optional=another_optional, + optional_any=optional_any, + optional_array=optional_array, + anumber=anumber, + astring=astring, + first_optional=first_optional, + ) return jsii.invoke(self, "derivedToFirst", [derived]) @jsii.member(jsii_name="readDerivedNonPrimitive") - def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": + def read_derived_non_primitive( + self, + *, + another_required: datetime.datetime, + bool: bool, + non_primitive: "DoubleTrouble", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> "DoubleTrouble": """Returns the boolean from a DerivedStruct struct. :param another_required: @@ -2567,12 +2948,28 @@ def read_derived_non_primitive(self, *, another_required: datetime.datetime, boo stability :stability: experimental """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + derived = DerivedStruct( + another_required=another_required, + bool=bool, + non_primitive=non_primitive, + another_optional=another_optional, + optional_any=optional_any, + optional_array=optional_array, + anumber=anumber, + astring=astring, + first_optional=first_optional, + ) return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) @jsii.member(jsii_name="readFirstNumber") - def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: + def read_first_number( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> jsii.Number: """Returns the "anumber" from a MyFirstStruct struct; :param anumber: An awesome number value. @@ -2582,7 +2979,9 @@ def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optiona stability :stability: experimental """ - first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + first = scope.jsii_calc_lib.MyFirstStruct( + anumber=anumber, astring=astring, first_optional=first_optional + ) return jsii.invoke(self, "readFirstNumber", [first]) @@ -2596,9 +2995,11 @@ def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: return jsii.get(self, "structLiteral") -@jsii.data_type(jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) -class Greetee(): - def __init__(self, *, name: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={"name": "name"} +) +class Greetee: + def __init__(self, *, name: typing.Optional[str] = None) -> None: """These are some arguments you can pass to a method. :param name: The name of the greetee. Default: world @@ -2606,9 +3007,9 @@ def __init__(self, *, name: typing.Optional[str]=None) -> None: stability :stability: experimental """ - self._values = { - } - if name is not None: self._values["name"] = name + self._values = {} + if name is not None: + self._values["name"] = name @builtins.property def name(self) -> typing.Optional[str]: @@ -2620,7 +3021,7 @@ def name(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('name') + return self._values.get("name") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2629,14 +3030,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "Greetee(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter"): +class GreetingAugmenter( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(GreetingAugmenter, self, []) @@ -2658,6 +3064,7 @@ class IAnonymousImplementationProvider(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IAnonymousImplementationProviderProxy @@ -2679,13 +3086,15 @@ def provide_as_interface(self) -> "IAnonymouslyImplementMe": ... -class _IAnonymousImplementationProviderProxy(): +class _IAnonymousImplementationProviderProxy: """We can return an anonymous interface implementation from an override without losing the interface declarations. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IAnonymousImplementationProvider" + @jsii.member(jsii_name="provideAsClass") def provide_as_class(self) -> "Implementation": """ @@ -2709,6 +3118,7 @@ class IAnonymouslyImplementMe(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IAnonymouslyImplementMeProxy @@ -2731,12 +3141,14 @@ def verb(self) -> str: ... -class _IAnonymouslyImplementMeProxy(): +class _IAnonymouslyImplementMeProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IAnonymouslyImplementMe" + @builtins.property @jsii.member(jsii_name="value") def value(self) -> jsii.Number: @@ -2761,6 +3173,7 @@ class IAnotherPublicInterface(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IAnotherPublicInterfaceProxy @@ -2779,12 +3192,14 @@ def a(self, value: str) -> None: ... -class _IAnotherPublicInterfaceProxy(): +class _IAnotherPublicInterfaceProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IAnotherPublicInterface" + @builtins.property @jsii.member(jsii_name="a") def a(self) -> str: @@ -2805,6 +3220,7 @@ class IBell(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IBellProxy @@ -2818,12 +3234,14 @@ def ring(self) -> None: ... -class _IBellProxy(): +class _IBellProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IBell" + @jsii.member(jsii_name="ring") def ring(self) -> None: """ @@ -2840,6 +3258,7 @@ class IBellRinger(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IBellRingerProxy @@ -2855,13 +3274,15 @@ def your_turn(self, bell: "IBell") -> None: ... -class _IBellRingerProxy(): +class _IBellRingerProxy: """Takes the object parameter as an interface. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IBellRinger" + @jsii.member(jsii_name="yourTurn") def your_turn(self, bell: "IBell") -> None: """ @@ -2880,6 +3301,7 @@ class IConcreteBellRinger(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IConcreteBellRingerProxy @@ -2895,13 +3317,15 @@ def your_turn(self, bell: "Bell") -> None: ... -class _IConcreteBellRingerProxy(): +class _IConcreteBellRingerProxy: """Takes the object parameter as a calss. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IConcreteBellRinger" + @jsii.member(jsii_name="yourTurn") def your_turn(self, bell: "Bell") -> None: """ @@ -2922,6 +3346,7 @@ class IDeprecatedInterface(jsii.compat.Protocol): stability :stability: deprecated """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IDeprecatedInterfaceProxy @@ -2954,7 +3379,7 @@ def method(self) -> None: ... -class _IDeprecatedInterfaceProxy(): +class _IDeprecatedInterfaceProxy: """ deprecated :deprecated: useless interface @@ -2962,7 +3387,9 @@ class _IDeprecatedInterfaceProxy(): stability :stability: deprecated """ + __jsii_type__ = "jsii-calc.IDeprecatedInterface" + @builtins.property @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: @@ -2997,6 +3424,7 @@ class IExperimentalInterface(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IExperimentalInterfaceProxy @@ -3023,12 +3451,14 @@ def method(self) -> None: ... -class _IExperimentalInterfaceProxy(): +class _IExperimentalInterfaceProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IExperimentalInterface" + @builtins.property @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: @@ -3057,6 +3487,7 @@ class IExtendsPrivateInterface(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IExtendsPrivateInterfaceProxy @@ -3084,12 +3515,14 @@ def private(self, value: str) -> None: ... -class _IExtendsPrivateInterfaceProxy(): +class _IExtendsPrivateInterfaceProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IExtendsPrivateInterface" + @builtins.property @jsii.member(jsii_name="moreThings") def more_things(self) -> typing.List[str]: @@ -3121,6 +3554,7 @@ class IExternalInterface(jsii.compat.Protocol): external: :external:: true """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IExternalInterfaceProxy @@ -3151,14 +3585,16 @@ def method(self) -> None: ... -class _IExternalInterfaceProxy(): +class _IExternalInterfaceProxy: """ stability :stability: experimental external: :external:: true """ + __jsii_type__ = "jsii-calc.IExternalInterface" + @builtins.property @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: @@ -3192,6 +3628,7 @@ class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IFriendlierProxy @@ -3224,7 +3661,9 @@ class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IFriendlier" + @jsii.member(jsii_name="farewell") def farewell(self) -> str: """Say farewell. @@ -3254,6 +3693,7 @@ class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceImplementedByAbstractClassProxy @@ -3268,13 +3708,15 @@ def prop_from_interface(self) -> str: ... -class _IInterfaceImplementedByAbstractClassProxy(): +class _IInterfaceImplementedByAbstractClassProxy: """awslabs/jsii#220 Abstract return type. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass" + @builtins.property @jsii.member(jsii_name="propFromInterface") def prop_from_interface(self) -> str: @@ -3291,6 +3733,7 @@ class IInterfaceWithInternal(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithInternalProxy @@ -3304,12 +3747,14 @@ def visible(self) -> None: ... -class _IInterfaceWithInternalProxy(): +class _IInterfaceWithInternalProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceWithInternal" + @jsii.member(jsii_name="visible") def visible(self) -> None: """ @@ -3325,6 +3770,7 @@ class IInterfaceWithMethods(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithMethodsProxy @@ -3347,12 +3793,14 @@ def do_things(self) -> None: ... -class _IInterfaceWithMethodsProxy(): +class _IInterfaceWithMethodsProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceWithMethods" + @builtins.property @jsii.member(jsii_name="value") def value(self) -> str: @@ -3378,12 +3826,13 @@ class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithOptionalMethodArgumentsProxy @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: """ :param arg1: - :param arg2: - @@ -3394,15 +3843,17 @@ def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: ... -class _IInterfaceWithOptionalMethodArgumentsProxy(): +class _IInterfaceWithOptionalMethodArgumentsProxy: """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments" + @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: """ :param arg1: - :param arg2: - @@ -3419,6 +3870,7 @@ class IInterfaceWithProperties(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithPropertiesProxy @@ -3446,12 +3898,14 @@ def read_write_string(self, value: str) -> None: ... -class _IInterfaceWithPropertiesProxy(): +class _IInterfaceWithPropertiesProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceWithProperties" + @builtins.property @jsii.member(jsii_name="readOnlyString") def read_only_string(self) -> str: @@ -3481,6 +3935,7 @@ class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Pr stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithPropertiesExtensionProxy @@ -3504,7 +3959,9 @@ class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithPrope stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension" + @builtins.property @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: @@ -3525,6 +3982,7 @@ class IJSII417PublicBaseOfBase(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IJSII417PublicBaseOfBaseProxy @@ -3547,12 +4005,14 @@ def foo(self) -> None: ... -class _IJSII417PublicBaseOfBaseProxy(): +class _IJSII417PublicBaseOfBaseProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase" + @builtins.property @jsii.member(jsii_name="hasRoot") def has_root(self) -> bool: @@ -3577,66 +4037,79 @@ class IJsii487External(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IJsii487ExternalProxy pass -class _IJsii487ExternalProxy(): + +class _IJsii487ExternalProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IJsii487External" pass + @jsii.interface(jsii_type="jsii-calc.IJsii487External2") class IJsii487External2(jsii.compat.Protocol): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IJsii487External2Proxy pass -class _IJsii487External2Proxy(): + +class _IJsii487External2Proxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IJsii487External2" pass + @jsii.interface(jsii_type="jsii-calc.IJsii496") class IJsii496(jsii.compat.Protocol): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IJsii496Proxy pass -class _IJsii496Proxy(): + +class _IJsii496Proxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IJsii496" pass + @jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral") class IMutableObjectLiteral(jsii.compat.Protocol): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IMutableObjectLiteralProxy @@ -3655,12 +4128,14 @@ def value(self, value: str) -> None: ... -class _IMutableObjectLiteralProxy(): +class _IMutableObjectLiteralProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IMutableObjectLiteral" + @builtins.property @jsii.member(jsii_name="value") def value(self) -> str: @@ -3681,6 +4156,7 @@ class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _INonInternalInterfaceProxy @@ -3717,7 +4193,9 @@ class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): stability :stability: experimental """ + __jsii_type__ = "jsii-calc.INonInternalInterface" + @builtins.property @jsii.member(jsii_name="b") def b(self) -> str: @@ -3752,6 +4230,7 @@ class IObjectWithProperty(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IObjectWithPropertyProxy @@ -3778,13 +4257,15 @@ def was_set(self) -> bool: ... -class _IObjectWithPropertyProxy(): +class _IObjectWithPropertyProxy: """Make sure that setters are properly called on objects with interfaces. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IObjectWithProperty" + @builtins.property @jsii.member(jsii_name="property") def property(self) -> str: @@ -3814,6 +4295,7 @@ class IOptionalMethod(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IOptionalMethodProxy @@ -3827,13 +4309,15 @@ def optional(self) -> typing.Optional[str]: ... -class _IOptionalMethodProxy(): +class _IOptionalMethodProxy: """Checks that optional result from interface method code generates correctly. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IOptionalMethod" + @jsii.member(jsii_name="optional") def optional(self) -> typing.Optional[str]: """ @@ -3849,6 +4333,7 @@ class IPrivatelyImplemented(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IPrivatelyImplementedProxy @@ -3863,12 +4348,14 @@ def success(self) -> bool: ... -class _IPrivatelyImplementedProxy(): +class _IPrivatelyImplementedProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IPrivatelyImplemented" + @builtins.property @jsii.member(jsii_name="success") def success(self) -> bool: @@ -3885,6 +4372,7 @@ class IPublicInterface(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IPublicInterfaceProxy @@ -3898,12 +4386,14 @@ def bye(self) -> str: ... -class _IPublicInterfaceProxy(): +class _IPublicInterfaceProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IPublicInterface" + @jsii.member(jsii_name="bye") def bye(self) -> str: """ @@ -3919,6 +4409,7 @@ class IPublicInterface2(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IPublicInterface2Proxy @@ -3932,12 +4423,14 @@ def ciao(self) -> str: ... -class _IPublicInterface2Proxy(): +class _IPublicInterface2Proxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IPublicInterface2" + @jsii.member(jsii_name="ciao") def ciao(self) -> str: """ @@ -3954,6 +4447,7 @@ class IRandomNumberGenerator(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IRandomNumberGeneratorProxy @@ -3971,13 +4465,15 @@ def next(self) -> jsii.Number: ... -class _IRandomNumberGeneratorProxy(): +class _IRandomNumberGeneratorProxy: """Generates random numbers. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IRandomNumberGenerator" + @jsii.member(jsii_name="next") def next(self) -> jsii.Number: """Returns another random number. @@ -3998,6 +4494,7 @@ class IReturnJsii976(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IReturnJsii976Proxy @@ -4012,13 +4509,15 @@ def foo(self) -> jsii.Number: ... -class _IReturnJsii976Proxy(): +class _IReturnJsii976Proxy: """Returns a subclass of a known class which implements an interface. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IReturnJsii976" + @builtins.property @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: @@ -4035,6 +4534,7 @@ class IReturnsNumber(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IReturnsNumberProxy @@ -4057,12 +4557,14 @@ def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: ... -class _IReturnsNumberProxy(): +class _IReturnsNumberProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IReturnsNumber" + @builtins.property @jsii.member(jsii_name="numberProp") def number_prop(self) -> scope.jsii_calc_lib.Number: @@ -4101,8 +4603,9 @@ def method(self) -> None: ... -class _IStableInterfaceProxy(): +class _IStableInterfaceProxy: __jsii_type__ = "jsii-calc.IStableInterface" + @builtins.property @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: @@ -4124,6 +4627,7 @@ class IStructReturningDelegate(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IStructReturningDelegateProxy @@ -4137,13 +4641,15 @@ def return_struct(self) -> "StructB": ... -class _IStructReturningDelegateProxy(): +class _IStructReturningDelegateProxy: """Verifies that a "pure" implementation of an interface works correctly. stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IStructReturningDelegate" + @jsii.member(jsii_name="returnStruct") def return_struct(self) -> "StructB": """ @@ -4153,11 +4659,14 @@ def return_struct(self) -> "StructB": return jsii.invoke(self, "returnStruct", []) -class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface"): +class ImplementInternalInterface( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ImplementInternalInterface, self, []) @@ -4180,6 +4689,7 @@ class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementatio stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Implementation, self, []) @@ -4194,11 +4704,14 @@ def value(self) -> jsii.Number: @jsii.implements(IInterfaceWithInternal) -class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal"): +class ImplementsInterfaceWithInternal( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ImplementsInterfaceWithInternal, self, []) @@ -4211,20 +4724,28 @@ def visible(self) -> None: return jsii.invoke(self, "visible", []) -class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass"): +class ImplementsInterfaceWithInternalSubclass( + ImplementsInterfaceWithInternal, + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) -class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface"): +class ImplementsPrivateInterface( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ImplementsPrivateInterface, self, []) @@ -4242,9 +4763,19 @@ def private(self, value: str) -> None: jsii.set(self, "private", value) -@jsii.data_type(jsii_type="jsii-calc.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) +@jsii.data_type( + jsii_type="jsii-calc.ImplictBaseOfBase", + jsii_struct_bases=[scope.jsii_calc_base.BaseProps], + name_mapping={"foo": "foo", "bar": "bar", "goo": "goo"}, +) class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): - def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime) -> None: + def __init__( + self, + *, + foo: scope.jsii_calc_base_of_base.Very, + bar: str, + goo: datetime.datetime, + ) -> None: """ :param foo: - :param bar: - @@ -4254,18 +4785,18 @@ def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: dat :stability: experimental """ self._values = { - 'foo': foo, - 'bar': bar, - 'goo': goo, + "foo": foo, + "bar": bar, + "goo": goo, } @builtins.property def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get('foo') + return self._values.get("foo") @builtins.property def bar(self) -> str: - return self._values.get('bar') + return self._values.get("bar") @builtins.property def goo(self) -> datetime.datetime: @@ -4273,7 +4804,7 @@ def goo(self) -> datetime.datetime: stability :stability: experimental """ - return self._values.get('goo') + return self._values.get("goo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -4282,10 +4813,14 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ImplictBaseOfBase(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections"): +class InterfaceCollections( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections" +): """Verifies that collections of interfaces or structs are correctly handled. See: https://github.com/aws/jsii/issues/1196 @@ -4293,6 +4828,7 @@ class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Interfa stability :stability: experimental """ + @jsii.member(jsii_name="listOfInterfaces") @builtins.classmethod def list_of_interfaces(cls) -> typing.List["IBell"]: @@ -4336,9 +4872,12 @@ class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMa stability :stability: experimental """ + @jsii.member(jsii_name="makeInterfaces") @builtins.classmethod - def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: + def make_interfaces( + cls, count: jsii.Number + ) -> typing.List[scope.jsii_calc_lib.IDoublable]: """ :param count: - @@ -4357,6 +4896,7 @@ class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.Isomorp stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IsomorphismProxy @@ -4376,11 +4916,15 @@ def myself(self) -> "Isomorphism": class _IsomorphismProxy(Isomorphism): pass -class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase"): + +class JSII417PublicBaseOfBase( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JSII417PublicBaseOfBase, self, []) @@ -4411,11 +4955,14 @@ def has_root(self) -> bool: return jsii.get(self, "hasRoot") -class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface"): +class JSObjectLiteralForInterface( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JSObjectLiteralForInterface, self, []) @@ -4436,11 +4983,14 @@ def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator": return jsii.invoke(self, "giveMeFriendlyGenerator", []) -class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative"): +class JSObjectLiteralToNative( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JSObjectLiteralToNative, self, []) @@ -4453,11 +5003,14 @@ def return_literal(self) -> "JSObjectLiteralToNativeClass": return jsii.invoke(self, "returnLiteral", []) -class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass"): +class JSObjectLiteralToNativeClass( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JSObjectLiteralToNativeClass, self, []) @@ -4488,11 +5041,14 @@ def prop_b(self, value: jsii.Number) -> None: jsii.set(self, "propB", value) -class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords"): +class JavaReservedWords( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JavaReservedWords, self, []) @@ -4932,6 +5488,7 @@ class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derive stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Jsii487Derived, self, []) @@ -4942,6 +5499,7 @@ class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derive stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Jsii496Derived, self, []) @@ -4952,6 +5510,7 @@ class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(JsiiAgent, self, []) @@ -4974,6 +5533,7 @@ class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter" stability :stability: experimental """ + @jsii.member(jsii_name="anyArray") @builtins.classmethod def any_array(cls) -> typing.Any: @@ -5093,7 +5653,7 @@ def any_zero(cls) -> typing.Any: @jsii.member(jsii_name="stringify") @builtins.classmethod - def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: + def stringify(cls, value: typing.Any = None) -> typing.Optional[str]: """ :param value: - @@ -5103,9 +5663,27 @@ def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: return jsii.sinvoke(cls, "stringify", [value]) -@jsii.data_type(jsii_type="jsii-calc.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) -class LoadBalancedFargateServiceProps(): - def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.LoadBalancedFargateServiceProps", + jsii_struct_bases=[], + name_mapping={ + "container_port": "containerPort", + "cpu": "cpu", + "memory_mib": "memoryMiB", + "public_load_balancer": "publicLoadBalancer", + "public_tasks": "publicTasks", + }, +) +class LoadBalancedFargateServiceProps: + def __init__( + self, + *, + container_port: typing.Optional[jsii.Number] = None, + cpu: typing.Optional[str] = None, + memory_mib: typing.Optional[str] = None, + public_load_balancer: typing.Optional[bool] = None, + public_tasks: typing.Optional[bool] = None, + ) -> None: """jsii#298: show default values in sphinx documentation, and respect newlines. :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 @@ -5117,13 +5695,17 @@ def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: ty stability :stability: experimental """ - self._values = { - } - if container_port is not None: self._values["container_port"] = container_port - if cpu is not None: self._values["cpu"] = cpu - if memory_mib is not None: self._values["memory_mib"] = memory_mib - if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer - if public_tasks is not None: self._values["public_tasks"] = public_tasks + self._values = {} + if container_port is not None: + self._values["container_port"] = container_port + if cpu is not None: + self._values["cpu"] = cpu + if memory_mib is not None: + self._values["memory_mib"] = memory_mib + if public_load_balancer is not None: + self._values["public_load_balancer"] = public_load_balancer + if public_tasks is not None: + self._values["public_tasks"] = public_tasks @builtins.property def container_port(self) -> typing.Optional[jsii.Number]: @@ -5137,7 +5719,7 @@ def container_port(self) -> typing.Optional[jsii.Number]: stability :stability: experimental """ - return self._values.get('container_port') + return self._values.get("container_port") @builtins.property def cpu(self) -> typing.Optional[str]: @@ -5158,7 +5740,7 @@ def cpu(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('cpu') + return self._values.get("cpu") @builtins.property def memory_mib(self) -> typing.Optional[str]: @@ -5185,7 +5767,7 @@ def memory_mib(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('memory_mib') + return self._values.get("memory_mib") @builtins.property def public_load_balancer(self) -> typing.Optional[bool]: @@ -5197,7 +5779,7 @@ def public_load_balancer(self) -> typing.Optional[bool]: stability :stability: experimental """ - return self._values.get('public_load_balancer') + return self._values.get("public_load_balancer") @builtins.property def public_tasks(self) -> typing.Optional[bool]: @@ -5209,7 +5791,7 @@ def public_tasks(self) -> typing.Optional[bool]: stability :stability: experimental """ - return self._values.get('public_tasks') + return self._values.get("public_tasks") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5218,14 +5800,19 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "LoadBalancedFargateServiceProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"): +class MethodNamedProperty( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(MethodNamedProperty, self, []) @@ -5248,13 +5835,18 @@ def elite(self) -> jsii.Number: @jsii.implements(IFriendlier, IRandomNumberGenerator) -class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"): +class Multiply( + BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply" +): """The "*" binary operation. stability :stability: experimental """ - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: """Creates a BinaryOperation. :param lhs: Left-hand side operand. @@ -5312,8 +5904,12 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -@jsii.data_type(jsii_type="jsii-calc.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) -class NestedStruct(): +@jsii.data_type( + jsii_type="jsii-calc.NestedStruct", + jsii_struct_bases=[], + name_mapping={"number_prop": "numberProp"}, +) +class NestedStruct: def __init__(self, *, number_prop: jsii.Number) -> None: """ :param number_prop: When provided, must be > 0. @@ -5322,7 +5918,7 @@ def __init__(self, *, number_prop: jsii.Number) -> None: :stability: experimental """ self._values = { - 'number_prop': number_prop, + "number_prop": number_prop, } @builtins.property @@ -5332,7 +5928,7 @@ def number_prop(self) -> jsii.Number: stability :stability: experimental """ - return self._values.get('number_prop') + return self._values.get("number_prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5341,15 +5937,20 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "NestedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary"): +class NodeStandardLibrary( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary" +): """Test fixture to verify that jsii modules can use the node standard library. stability :stability: experimental """ + def __init__(self) -> None: jsii.create(NodeStandardLibrary, self, []) @@ -5400,13 +6001,16 @@ def os_platform(self) -> str: return jsii.get(self, "osPlatform") -class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined"): +class NullShouldBeTreatedAsUndefined( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined" +): """jsii#282, aws-cdk#157: null should be treated as "undefined". stability :stability: experimental """ - def __init__(self, _param1: str, optional: typing.Any=None) -> None: + + def __init__(self, _param1: str, optional: typing.Any = None) -> None: """ :param _param1: - :param optional: - @@ -5417,7 +6021,7 @@ def __init__(self, _param1: str, optional: typing.Any=None) -> None: jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) @jsii.member(jsii_name="giveMeUndefined") - def give_me_undefined(self, value: typing.Any=None) -> None: + def give_me_undefined(self, value: typing.Any = None) -> None: """ :param value: - @@ -5427,7 +6031,14 @@ def give_me_undefined(self, value: typing.Any=None) -> None: return jsii.invoke(self, "giveMeUndefined", [value]) @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") - def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: + def give_me_undefined_inside_an_object( + self, + *, + array_with_three_elements_and_undefined_as_second_argument: typing.List[ + typing.Any + ], + this_should_be_undefined: typing.Any = None, + ) -> None: """ :param array_with_three_elements_and_undefined_as_second_argument: :param this_should_be_undefined: @@ -5435,7 +6046,10 @@ def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_un stability :stability: experimental """ - input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) + input = NullShouldBeTreatedAsUndefinedData( + array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, + this_should_be_undefined=this_should_be_undefined, + ) return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) @@ -5461,9 +6075,23 @@ def change_me_to_undefined(self, value: typing.Optional[str]) -> None: jsii.set(self, "changeMeToUndefined", value) -@jsii.data_type(jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) -class NullShouldBeTreatedAsUndefinedData(): - def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", + jsii_struct_bases=[], + name_mapping={ + "array_with_three_elements_and_undefined_as_second_argument": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "this_should_be_undefined": "thisShouldBeUndefined", + }, +) +class NullShouldBeTreatedAsUndefinedData: + def __init__( + self, + *, + array_with_three_elements_and_undefined_as_second_argument: typing.List[ + typing.Any + ], + this_should_be_undefined: typing.Any = None, + ) -> None: """ :param array_with_three_elements_and_undefined_as_second_argument: :param this_should_be_undefined: @@ -5472,17 +6100,22 @@ def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument :stability: experimental """ self._values = { - 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, + "array_with_three_elements_and_undefined_as_second_argument": array_with_three_elements_and_undefined_as_second_argument, } - if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined + if this_should_be_undefined is not None: + self._values["this_should_be_undefined"] = this_should_be_undefined @builtins.property - def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: + def array_with_three_elements_and_undefined_as_second_argument( + self, + ) -> typing.List[typing.Any]: """ stability :stability: experimental """ - return self._values.get('array_with_three_elements_and_undefined_as_second_argument') + return self._values.get( + "array_with_three_elements_and_undefined_as_second_argument" + ) @builtins.property def this_should_be_undefined(self) -> typing.Any: @@ -5490,7 +6123,7 @@ def this_should_be_undefined(self) -> typing.Any: stability :stability: experimental """ - return self._values.get('this_should_be_undefined') + return self._values.get("this_should_be_undefined") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5499,7 +6132,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "NullShouldBeTreatedAsUndefinedData(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"): @@ -5508,6 +6143,7 @@ class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenera stability :stability: experimental """ + def __init__(self, generator: "IRandomNumberGenerator") -> None: """ :param generator: - @@ -5549,17 +6185,22 @@ def generator(self, value: "IRandomNumberGenerator") -> None: jsii.set(self, "generator", value) -class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections"): +class ObjectRefsInCollections( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections" +): """Verify that object references can be passed inside collections. stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ObjectRefsInCollections, self, []) @jsii.member(jsii_name="sumFromArray") - def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: + def sum_from_array( + self, values: typing.List[scope.jsii_calc_lib.Value] + ) -> jsii.Number: """Returns the sum of all values. :param values: - @@ -5570,7 +6211,9 @@ def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii return jsii.invoke(self, "sumFromArray", [values]) @jsii.member(jsii_name="sumFromMap") - def sum_from_map(self, values: typing.Mapping[str, scope.jsii_calc_lib.Value]) -> jsii.Number: + def sum_from_map( + self, values: typing.Mapping[str, scope.jsii_calc_lib.Value] + ) -> jsii.Number: """Returns the sum of all values in a map. :param values: - @@ -5581,11 +6224,14 @@ def sum_from_map(self, values: typing.Mapping[str, scope.jsii_calc_lib.Value]) - return jsii.invoke(self, "sumFromMap", [values]) -class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider"): +class ObjectWithPropertyProvider( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider" +): """ stability :stability: experimental """ + @jsii.member(jsii_name="provide") @builtins.classmethod def provide(cls) -> "IObjectWithProperty": @@ -5605,6 +6251,7 @@ class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"): stability :stability: deprecated """ + def __init__(self) -> None: jsii.create(Old, self, []) @@ -5618,11 +6265,14 @@ def do_a_thing(self) -> None: return jsii.invoke(self, "doAThing", []) -class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker"): +class OptionalArgumentInvoker( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker" +): """ stability :stability: experimental """ + def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: """ :param delegate: - @@ -5649,12 +6299,20 @@ def invoke_without_optional(self) -> None: return jsii.invoke(self, "invokeWithoutOptional", []) -class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument"): +class OptionalConstructorArgument( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument" +): """ stability :stability: experimental """ - def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + + def __init__( + self, + arg1: jsii.Number, + arg2: str, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: """ :param arg1: - :param arg2: - @@ -5693,18 +6351,22 @@ def arg3(self) -> typing.Optional[datetime.datetime]: return jsii.get(self, "arg3") -@jsii.data_type(jsii_type="jsii-calc.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) -class OptionalStruct(): - def __init__(self, *, field: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.OptionalStruct", + jsii_struct_bases=[], + name_mapping={"field": "field"}, +) +class OptionalStruct: + def __init__(self, *, field: typing.Optional[str] = None) -> None: """ :param field: stability :stability: experimental """ - self._values = { - } - if field is not None: self._values["field"] = field + self._values = {} + if field is not None: + self._values["field"] = field @builtins.property def field(self) -> typing.Optional[str]: @@ -5712,7 +6374,7 @@ def field(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('field') + return self._values.get("field") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5721,15 +6383,20 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "OptionalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer"): +class OptionalStructConsumer( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer" +): """ stability :stability: experimental """ - def __init__(self, *, field: typing.Optional[str]=None) -> None: + + def __init__(self, *, field: typing.Optional[str] = None) -> None: """ :param field: @@ -5759,13 +6426,16 @@ def field_value(self) -> typing.Optional[str]: return jsii.get(self, "fieldValue") -class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember"): +class OverridableProtectedMember( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember" +): """ see :see: https://github.com/aws/jsii/issues/903 stability :stability: experimental """ + def __init__(self) -> None: jsii.create(OverridableProtectedMember, self, []) @@ -5816,11 +6486,14 @@ def _override_read_write(self, value: str) -> None: jsii.set(self, "overrideReadWrite", value) -class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject"): +class OverrideReturnsObject( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(OverrideReturnsObject, self, []) @@ -5835,8 +6508,12 @@ def test(self, obj: "IReturnsNumber") -> jsii.Number: return jsii.invoke(self, "test", [obj]) -@jsii.data_type(jsii_type="jsii-calc.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class ParentStruct982(): +@jsii.data_type( + jsii_type="jsii-calc.ParentStruct982", + jsii_struct_bases=[], + name_mapping={"foo": "foo"}, +) +class ParentStruct982: def __init__(self, *, foo: str) -> None: """https://github.com/aws/jsii/issues/982. @@ -5846,7 +6523,7 @@ def __init__(self, *, foo: str) -> None: :stability: experimental """ self._values = { - 'foo': foo, + "foo": foo, } @builtins.property @@ -5855,7 +6532,7 @@ def foo(self) -> str: stability :stability: experimental """ - return self._values.get('foo') + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5864,14 +6541,20 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ParentStruct982(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.PartiallyInitializedThisConsumer"): +class PartiallyInitializedThisConsumer( + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.PartiallyInitializedThisConsumer", +): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _PartiallyInitializedThisConsumerProxy @@ -5881,7 +6564,9 @@ def __init__(self) -> None: @jsii.member(jsii_name="consumePartiallyInitializedThis") @abc.abstractmethod - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + def consume_partially_initialized_this( + self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum" + ) -> str: """ :param obj: - :param dt: - @@ -5895,7 +6580,9 @@ def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): @jsii.member(jsii_name="consumePartiallyInitializedThis") - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + def consume_partially_initialized_this( + self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum" + ) -> str: """ :param obj: - :param dt: - @@ -5912,6 +6599,7 @@ class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Polymorphism, self, []) @@ -5926,13 +6614,18 @@ def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: return jsii.invoke(self, "sayHello", [friendly]) -class Power(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): +class Power( + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power" +): """The power operation. stability :stability: experimental """ - def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None: + + def __init__( + self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value + ) -> None: """Creates a Power operation. :param base: The base of the power. @@ -5976,12 +6669,15 @@ def pow(self) -> scope.jsii_calc_lib.Value: return jsii.get(self, "pow") -class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): +class PropertyNamedProperty( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty" +): """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. stability :stability: experimental """ + def __init__(self) -> None: jsii.create(PropertyNamedProperty, self, []) @@ -6009,6 +6705,7 @@ class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(PublicClass, self, []) @@ -6021,11 +6718,14 @@ def hello(self) -> None: return jsii.invoke(self, "hello", []) -class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords"): +class PythonReservedWords( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(PythonReservedWords, self, []) @@ -6286,12 +6986,15 @@ def yield_(self) -> None: return jsii.invoke(self, "yield", []) -class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage"): +class ReferenceEnumFromScopedPackage( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage" +): """See awslabs/jsii#138. stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ReferenceEnumFromScopedPackage, self, []) @@ -6323,11 +7026,16 @@ def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: return jsii.get(self, "foo") @foo.setter - def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]) -> None: + def foo( + self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule] + ) -> None: jsii.set(self, "foo", value) -class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface"): +class ReturnsPrivateImplementationOfInterface( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface", +): """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. return @@ -6338,6 +7046,7 @@ class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ReturnsPrivateImplementationOfInterface, self, []) @@ -6351,9 +7060,15 @@ def private_implementation(self) -> "IPrivatelyImplemented": return jsii.get(self, "privateImplementation") -@jsii.data_type(jsii_type="jsii-calc.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) -class RootStruct(): - def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.RootStruct", + jsii_struct_bases=[], + name_mapping={"string_prop": "stringProp", "nested_struct": "nestedStruct"}, +) +class RootStruct: + def __init__( + self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None + ) -> None: """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. This is cheating with the (current) declared types, but this is the "more @@ -6365,11 +7080,13 @@ def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedSt stability :stability: experimental """ - if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) + if isinstance(nested_struct, dict): + nested_struct = NestedStruct(**nested_struct) self._values = { - 'string_prop': string_prop, + "string_prop": string_prop, } - if nested_struct is not None: self._values["nested_struct"] = nested_struct + if nested_struct is not None: + self._values["nested_struct"] = nested_struct @builtins.property def string_prop(self) -> str: @@ -6378,7 +7095,7 @@ def string_prop(self) -> str: stability :stability: experimental """ - return self._values.get('string_prop') + return self._values.get("string_prop") @builtins.property def nested_struct(self) -> typing.Optional["NestedStruct"]: @@ -6386,7 +7103,7 @@ def nested_struct(self) -> typing.Optional["NestedStruct"]: stability :stability: experimental """ - return self._values.get('nested_struct') + return self._values.get("nested_struct") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6395,17 +7112,24 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "RootStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator"): +class RootStructValidator( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator" +): """ stability :stability: experimental """ + @jsii.member(jsii_name="validate") @builtins.classmethod - def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: + def validate( + cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None + ) -> None: """ :param string_prop: May not be empty. :param nested_struct: @@ -6418,16 +7142,24 @@ def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStr return jsii.sinvoke(cls, "validate", [struct]) -class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking"): +class RuntimeTypeChecking( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(RuntimeTypeChecking, self, []) @jsii.member(jsii_name="methodWithDefaultedArguments") - def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + def method_with_defaulted_arguments( + self, + arg1: typing.Optional[jsii.Number] = None, + arg2: typing.Optional[str] = None, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: """ :param arg1: - :param arg2: - @@ -6439,7 +7171,7 @@ def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=Non return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) @jsii.member(jsii_name="methodWithOptionalAnyArgument") - def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: + def method_with_optional_any_argument(self, arg: typing.Any = None) -> None: """ :param arg: - @@ -6449,7 +7181,12 @@ def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) @jsii.member(jsii_name="methodWithOptionalArguments") - def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + def method_with_optional_arguments( + self, + arg1: jsii.Number, + arg2: str, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: """Used to verify verification of number of method arguments. :param arg1: - @@ -6462,9 +7199,21 @@ def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typ return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) -@jsii.data_type(jsii_type="jsii-calc.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) -class SecondLevelStruct(): - def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.SecondLevelStruct", + jsii_struct_bases=[], + name_mapping={ + "deeper_required_prop": "deeperRequiredProp", + "deeper_optional_prop": "deeperOptionalProp", + }, +) +class SecondLevelStruct: + def __init__( + self, + *, + deeper_required_prop: str, + deeper_optional_prop: typing.Optional[str] = None, + ) -> None: """ :param deeper_required_prop: It's long and required. :param deeper_optional_prop: It's long, but you'll almost never pass it. @@ -6473,9 +7222,10 @@ def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Op :stability: experimental """ self._values = { - 'deeper_required_prop': deeper_required_prop, + "deeper_required_prop": deeper_required_prop, } - if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop + if deeper_optional_prop is not None: + self._values["deeper_optional_prop"] = deeper_optional_prop @builtins.property def deeper_required_prop(self) -> str: @@ -6484,7 +7234,7 @@ def deeper_required_prop(self) -> str: stability :stability: experimental """ - return self._values.get('deeper_required_prop') + return self._values.get("deeper_required_prop") @builtins.property def deeper_optional_prop(self) -> typing.Optional[str]: @@ -6493,7 +7243,7 @@ def deeper_optional_prop(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('deeper_optional_prop') + return self._values.get("deeper_optional_prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6502,10 +7252,14 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "SecondLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes"): +class SingleInstanceTwoTypes( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes" +): """Test that a single instance can be returned under two different FQNs. JSII clients can instantiate 2 different strongly-typed wrappers for the same @@ -6515,6 +7269,7 @@ class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Singl stability :stability: experimental """ + def __init__(self) -> None: jsii.create(SingleInstanceTwoTypes, self, []) @@ -6543,6 +7298,7 @@ class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"): stability :stability: experimental """ + @jsii.member(jsii_name="isSingletonInt") def is_singleton_int(self, value: jsii.Number) -> bool: """ @@ -6561,6 +7317,7 @@ class SingletonIntEnum(enum.Enum): stability :stability: experimental """ + SINGLETON_INT = "SINGLETON_INT" """Elite! @@ -6568,6 +7325,7 @@ class SingletonIntEnum(enum.Enum): :stability: experimental """ + class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"): """Verifies that singleton enums are handled correctly. @@ -6576,6 +7334,7 @@ class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonStr stability :stability: experimental """ + @jsii.member(jsii_name="isSingletonString") def is_singleton_string(self, value: str) -> bool: """ @@ -6594,6 +7353,7 @@ class SingletonStringEnum(enum.Enum): stability :stability: experimental """ + SINGLETON_STRING = "SINGLETON_STRING" """1337. @@ -6601,8 +7361,13 @@ class SingletonStringEnum(enum.Enum): :stability: experimental """ -@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'}) -class SmellyStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.SmellyStruct", + jsii_struct_bases=[], + name_mapping={"property": "property", "yet_anoter_one": "yetAnoterOne"}, +) +class SmellyStruct: def __init__(self, *, property: str, yet_anoter_one: bool) -> None: """ :param property: @@ -6612,8 +7377,8 @@ def __init__(self, *, property: str, yet_anoter_one: bool) -> None: :stability: experimental """ self._values = { - 'property': property, - 'yet_anoter_one': yet_anoter_one, + "property": property, + "yet_anoter_one": yet_anoter_one, } @builtins.property @@ -6622,7 +7387,7 @@ def property(self) -> str: stability :stability: experimental """ - return self._values.get('property') + return self._values.get("property") @builtins.property def yet_anoter_one(self) -> bool: @@ -6630,7 +7395,7 @@ def yet_anoter_one(self) -> bool: stability :stability: experimental """ - return self._values.get('yet_anoter_one') + return self._values.get("yet_anoter_one") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6639,7 +7404,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "SmellyStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"): @@ -6647,6 +7414,7 @@ class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii stability :stability: experimental """ + def __init__(self) -> None: jsii.create(SomeTypeJsii976, self, []) @@ -6670,7 +7438,9 @@ def return_return(cls) -> "IReturnJsii976": class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"): - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: """ :param readonly_string: - :param mutable_number: - @@ -6701,19 +7471,24 @@ class StableEnum(enum.Enum): OPTION_A = "OPTION_A" OPTION_B = "OPTION_B" -@jsii.data_type(jsii_type="jsii-calc.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class StableStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.StableStruct", + jsii_struct_bases=[], + name_mapping={"readonly_property": "readonlyProperty"}, +) +class StableStruct: def __init__(self, *, readonly_property: str) -> None: """ :param readonly_property: """ self._values = { - 'readonly_property': readonly_property, + "readonly_property": readonly_property, } @builtins.property def readonly_property(self) -> str: - return self._values.get('readonly_property') + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6722,7 +7497,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "StableStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"): @@ -6733,6 +7510,7 @@ class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext" stability :stability: experimental """ + @jsii.member(jsii_name="canAccessStaticContext") @builtins.classmethod def can_access_static_context(cls) -> bool: @@ -6761,6 +7539,7 @@ class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"): stability :stability: experimental """ + def __init__(self, value: str) -> None: """ :param value: - @@ -6874,6 +7653,7 @@ class StringEnum(enum.Enum): stability :stability: experimental """ + A = "A" """ stability @@ -6890,11 +7670,13 @@ class StringEnum(enum.Enum): :stability: experimental """ + class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(StripInternal, self, []) @@ -6912,9 +7694,23 @@ def you_see_me(self, value: str) -> None: jsii.set(self, "youSeeMe", value) -@jsii.data_type(jsii_type="jsii-calc.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) -class StructA(): - def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.StructA", + jsii_struct_bases=[], + name_mapping={ + "required_string": "requiredString", + "optional_number": "optionalNumber", + "optional_string": "optionalString", + }, +) +class StructA: + def __init__( + self, + *, + required_string: str, + optional_number: typing.Optional[jsii.Number] = None, + optional_string: typing.Optional[str] = None, + ) -> None: """We can serialize and deserialize structs without silently ignoring optional fields. :param required_string: @@ -6925,10 +7721,12 @@ def __init__(self, *, required_string: str, optional_number: typing.Optional[jsi :stability: experimental """ self._values = { - 'required_string': required_string, + "required_string": required_string, } - if optional_number is not None: self._values["optional_number"] = optional_number - if optional_string is not None: self._values["optional_string"] = optional_string + if optional_number is not None: + self._values["optional_number"] = optional_number + if optional_string is not None: + self._values["optional_string"] = optional_string @builtins.property def required_string(self) -> str: @@ -6936,7 +7734,7 @@ def required_string(self) -> str: stability :stability: experimental """ - return self._values.get('required_string') + return self._values.get("required_string") @builtins.property def optional_number(self) -> typing.Optional[jsii.Number]: @@ -6944,7 +7742,7 @@ def optional_number(self) -> typing.Optional[jsii.Number]: stability :stability: experimental """ - return self._values.get('optional_number') + return self._values.get("optional_number") @builtins.property def optional_string(self) -> typing.Optional[str]: @@ -6952,7 +7750,7 @@ def optional_string(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('optional_string') + return self._values.get("optional_string") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6961,12 +7759,28 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) -class StructB(): - def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None) -> None: + return "StructA(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.StructB", + jsii_struct_bases=[], + name_mapping={ + "required_string": "requiredString", + "optional_boolean": "optionalBoolean", + "optional_struct_a": "optionalStructA", + }, +) +class StructB: + def __init__( + self, + *, + required_string: str, + optional_boolean: typing.Optional[bool] = None, + optional_struct_a: typing.Optional["StructA"] = None, + ) -> None: """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. :param required_string: @@ -6976,12 +7790,15 @@ def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bo stability :stability: experimental """ - if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) + if isinstance(optional_struct_a, dict): + optional_struct_a = StructA(**optional_struct_a) self._values = { - 'required_string': required_string, + "required_string": required_string, } - if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean - if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a + if optional_boolean is not None: + self._values["optional_boolean"] = optional_boolean + if optional_struct_a is not None: + self._values["optional_struct_a"] = optional_struct_a @builtins.property def required_string(self) -> str: @@ -6989,7 +7806,7 @@ def required_string(self) -> str: stability :stability: experimental """ - return self._values.get('required_string') + return self._values.get("required_string") @builtins.property def optional_boolean(self) -> typing.Optional[bool]: @@ -6997,7 +7814,7 @@ def optional_boolean(self) -> typing.Optional[bool]: stability :stability: experimental """ - return self._values.get('optional_boolean') + return self._values.get("optional_boolean") @builtins.property def optional_struct_a(self) -> typing.Optional["StructA"]: @@ -7005,7 +7822,7 @@ def optional_struct_a(self) -> typing.Optional["StructA"]: stability :stability: experimental """ - return self._values.get('optional_struct_a') + return self._values.get("optional_struct_a") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7014,12 +7831,18 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) -class StructParameterType(): - def __init__(self, *, scope: str, props: typing.Optional[bool]=None) -> None: + return "StructB(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type="jsii-calc.StructParameterType", + jsii_struct_bases=[], + name_mapping={"scope": "scope", "props": "props"}, +) +class StructParameterType: + def __init__(self, *, scope: str, props: typing.Optional[bool] = None) -> None: """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. See: https://github.com/aws/aws-cdk/issues/4302 @@ -7031,9 +7854,10 @@ def __init__(self, *, scope: str, props: typing.Optional[bool]=None) -> None: :stability: experimental """ self._values = { - 'scope': scope, + "scope": scope, } - if props is not None: self._values["props"] = props + if props is not None: + self._values["props"] = props @builtins.property def scope(self) -> str: @@ -7041,7 +7865,7 @@ def scope(self) -> str: stability :stability: experimental """ - return self._values.get('scope') + return self._values.get("scope") @builtins.property def props(self) -> typing.Optional[bool]: @@ -7049,7 +7873,7 @@ def props(self) -> typing.Optional[bool]: stability :stability: experimental """ - return self._values.get('props') + return self._values.get("props") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7058,17 +7882,22 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "StructParameterType(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"): """Just because we can.""" + def __init__(self) -> None: jsii.create(StructPassing, self, []) @jsii.member(jsii_name="howManyVarArgsDidIPass") @builtins.classmethod - def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: + def how_many_var_args_did_i_pass( + cls, _positional: jsii.Number, *inputs: "TopLevelStruct" + ) -> jsii.Number: """ :param _positional: - :param inputs: - @@ -7077,23 +7906,35 @@ def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLev @jsii.member(jsii_name="roundTrip") @builtins.classmethod - def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": + def round_trip( + cls, + _positional: jsii.Number, + *, + required: str, + second_level: typing.Union[jsii.Number, "SecondLevelStruct"], + optional: typing.Optional[str] = None, + ) -> "TopLevelStruct": """ :param _positional: - :param required: This is a required field. :param second_level: A union to really stress test our serialization. :param optional: You don't have to pass this. """ - input = TopLevelStruct(required=required, second_level=second_level, optional=optional) + input = TopLevelStruct( + required=required, second_level=second_level, optional=optional + ) return jsii.sinvoke(cls, "roundTrip", [_positional, input]) -class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer"): +class StructUnionConsumer( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer" +): """ stability :stability: experimental """ + @jsii.member(jsii_name="isStructA") @builtins.classmethod def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: @@ -7117,9 +7958,25 @@ def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: return jsii.sinvoke(cls, "isStructB", [struct]) -@jsii.data_type(jsii_type="jsii-calc.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) -class StructWithJavaReservedWords(): - def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.StructWithJavaReservedWords", + jsii_struct_bases=[], + name_mapping={ + "default": "default", + "assert_": "assert", + "result": "result", + "that": "that", + }, +) +class StructWithJavaReservedWords: + def __init__( + self, + *, + default: str, + assert_: typing.Optional[str] = None, + result: typing.Optional[str] = None, + that: typing.Optional[str] = None, + ) -> None: """ :param default: :param assert_: @@ -7130,11 +7987,14 @@ def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: :stability: experimental """ self._values = { - 'default': default, + "default": default, } - if assert_ is not None: self._values["assert_"] = assert_ - if result is not None: self._values["result"] = result - if that is not None: self._values["that"] = that + if assert_ is not None: + self._values["assert_"] = assert_ + if result is not None: + self._values["result"] = result + if that is not None: + self._values["that"] = that @builtins.property def default(self) -> str: @@ -7142,7 +8002,7 @@ def default(self) -> str: stability :stability: experimental """ - return self._values.get('default') + return self._values.get("default") @builtins.property def assert_(self) -> typing.Optional[str]: @@ -7150,7 +8010,7 @@ def assert_(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('assert_') + return self._values.get("assert_") @builtins.property def result(self) -> typing.Optional[str]: @@ -7158,7 +8018,7 @@ def result(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('result') + return self._values.get("result") @builtins.property def that(self) -> typing.Optional[str]: @@ -7166,7 +8026,7 @@ def that(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('that') + return self._values.get("that") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7175,15 +8035,20 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "StructWithJavaReservedWords(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class Sum(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"): +class Sum( + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum" +): """An operation that sums multiple values. stability :stability: experimental """ + def __init__(self) -> None: """ stability @@ -7218,9 +8083,13 @@ def parts(self, value: typing.List[scope.jsii_calc_lib.Value]) -> None: jsii.set(self, "parts", value) -@jsii.data_type(jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) -class SupportsNiceJavaBuilderProps(): - def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", + jsii_struct_bases=[], + name_mapping={"bar": "bar", "id": "id"}, +) +class SupportsNiceJavaBuilderProps: + def __init__(self, *, bar: jsii.Number, id: typing.Optional[str] = None) -> None: """ :param bar: Some number, like 42. :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. @@ -7229,9 +8098,10 @@ def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: :stability: experimental """ self._values = { - 'bar': bar, + "bar": bar, } - if id is not None: self._values["id"] = id + if id is not None: + self._values["id"] = id @builtins.property def bar(self) -> jsii.Number: @@ -7240,7 +8110,7 @@ def bar(self) -> jsii.Number: stability :stability: experimental """ - return self._values.get('bar') + return self._values.get("bar") @builtins.property def id(self) -> typing.Optional[str]: @@ -7251,7 +8121,7 @@ def id(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('id') + return self._values.get("id") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7260,16 +8130,24 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "SupportsNiceJavaBuilderProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps"): +class SupportsNiceJavaBuilderWithRequiredProps( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", +): """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. stability :stability: experimental """ - def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: + + def __init__( + self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str] = None + ) -> None: """ :param id_: some identifier of your choice. :param bar: Some number, like 42. @@ -7311,11 +8189,14 @@ def prop_id(self) -> typing.Optional[str]: return jsii.get(self, "propId") -class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods"): +class SyncVirtualMethods( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(SyncVirtualMethods, self, []) @@ -7487,6 +8368,7 @@ class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Thrower, self, []) @@ -7499,9 +8381,23 @@ def throw_error(self) -> None: return jsii.invoke(self, "throwError", []) -@jsii.data_type(jsii_type="jsii-calc.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) -class TopLevelStruct(): - def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> None: +@jsii.data_type( + jsii_type="jsii-calc.TopLevelStruct", + jsii_struct_bases=[], + name_mapping={ + "required": "required", + "second_level": "secondLevel", + "optional": "optional", + }, +) +class TopLevelStruct: + def __init__( + self, + *, + required: str, + second_level: typing.Union[jsii.Number, "SecondLevelStruct"], + optional: typing.Optional[str] = None, + ) -> None: """ :param required: This is a required field. :param second_level: A union to really stress test our serialization. @@ -7511,10 +8407,11 @@ def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "Se :stability: experimental """ self._values = { - 'required': required, - 'second_level': second_level, + "required": required, + "second_level": second_level, } - if optional is not None: self._values["optional"] = optional + if optional is not None: + self._values["optional"] = optional @builtins.property def required(self) -> str: @@ -7523,7 +8420,7 @@ def required(self) -> str: stability :stability: experimental """ - return self._values.get('required') + return self._values.get("required") @builtins.property def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: @@ -7532,7 +8429,7 @@ def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: stability :stability: experimental """ - return self._values.get('second_level') + return self._values.get("second_level") @builtins.property def optional(self) -> typing.Optional[str]: @@ -7541,7 +8438,7 @@ def optional(self) -> typing.Optional[str]: stability :stability: experimental """ - return self._values.get('optional') + return self._values.get("optional") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7550,15 +8447,22 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "TopLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): +class UnaryOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.UnaryOperation", +): """An operation on a single operand. stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _UnaryOperationProxy @@ -7582,12 +8486,24 @@ def operand(self) -> scope.jsii_calc_lib.Value: return jsii.get(self, "operand") -class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): +class _UnaryOperationProxy( + UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): pass -@jsii.data_type(jsii_type="jsii-calc.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) -class UnionProperties(): - def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[str, jsii.Number]]=None) -> None: + +@jsii.data_type( + jsii_type="jsii-calc.UnionProperties", + jsii_struct_bases=[], + name_mapping={"bar": "bar", "foo": "foo"}, +) +class UnionProperties: + def __init__( + self, + *, + bar: typing.Union[str, jsii.Number, "AllTypes"], + foo: typing.Optional[typing.Union[str, jsii.Number]] = None, + ) -> None: """ :param bar: :param foo: @@ -7596,9 +8512,10 @@ def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typi :stability: experimental """ self._values = { - 'bar': bar, + "bar": bar, } - if foo is not None: self._values["foo"] = foo + if foo is not None: + self._values["foo"] = foo @builtins.property def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: @@ -7606,7 +8523,7 @@ def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: stability :stability: experimental """ - return self._values.get('bar') + return self._values.get("bar") @builtins.property def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]: @@ -7614,7 +8531,7 @@ def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]: stability :stability: experimental """ - return self._values.get('foo') + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -7623,16 +8540,21 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "UnionProperties(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) @jsii.implements(scope.jsii_calc_lib.custom_submodule_name.IReflectable) -class UpcasingReflectable(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable"): +class UpcasingReflectable( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable" +): """Ensures submodule-imported types from dependencies can be used correctly. stability :stability: experimental """ + def __init__(self, delegate: typing.Mapping[str, typing.Any]) -> None: """ :param delegate: - @@ -7653,7 +8575,9 @@ def REFLECTOR(cls) -> scope.jsii_calc_lib.custom_submodule_name.Reflector: @builtins.property @jsii.member(jsii_name="entries") - def entries(self) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]: + def entries( + self, + ) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]: """ stability :stability: experimental @@ -7661,11 +8585,14 @@ def entries(self) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.Refle return jsii.get(self, "entries") -class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency"): +class UseBundledDependency( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(UseBundledDependency, self, []) @@ -7684,6 +8611,7 @@ class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(UseCalcBase, self, []) @@ -7696,11 +8624,14 @@ def hello(self) -> scope.jsii_calc_base.Base: return jsii.invoke(self, "hello", []) -class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties"): +class UsesInterfaceWithProperties( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties" +): """ stability :stability: experimental """ + def __init__(self, obj: "IInterfaceWithProperties") -> None: """ :param obj: - @@ -7753,6 +8684,7 @@ class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvo stability :stability: experimental """ + def __init__(self, method: "VariadicMethod") -> None: """ :param method: - @@ -7778,6 +8710,7 @@ class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMetho stability :stability: experimental """ + def __init__(self, *prefix: jsii.Number) -> None: """ :param prefix: a prefix that will be use for all values returned by ``#asArray``. @@ -7788,7 +8721,9 @@ def __init__(self, *prefix: jsii.Number) -> None: jsii.create(VariadicMethod, self, [*prefix]) @jsii.member(jsii_name="asArray") - def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: + def as_array( + self, first: jsii.Number, *others: jsii.Number + ) -> typing.List[jsii.Number]: """ :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). :param others: other elements to be included in the array. @@ -7799,11 +8734,14 @@ def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii return jsii.invoke(self, "asArray", [first, *others]) -class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground"): +class VirtualMethodPlayground( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(VirtualMethodPlayground, self, []) @@ -7858,7 +8796,9 @@ def sum_sync(self, count: jsii.Number) -> jsii.Number: return jsii.invoke(self, "sumSync", [count]) -class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback"): +class VoidCallback( + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback" +): """This test is used to validate the runtimes can return correctly from a void callback. - Implement ``overrideMe`` (method does not have to do anything). @@ -7868,6 +8808,7 @@ class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCa stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _VoidCallbackProxy @@ -7912,13 +8853,16 @@ def _override_me(self) -> None: return jsii.invoke(self, "overrideMe", []) -class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor"): +class WithPrivatePropertyInConstructor( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor" +): """Verifies that private property declarations in constructor arguments are hidden. stability :stability: experimental """ - def __init__(self, private_field: typing.Optional[str]=None) -> None: + + def __init__(self, private_field: typing.Optional[str] = None) -> None: """ :param private_field: - @@ -7938,11 +8882,16 @@ def success(self) -> bool: @jsii.implements(IInterfaceImplementedByAbstractClass) -class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClass"): +class AbstractClass( + AbstractClassBase, + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.AbstractClass", +): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractClassProxy @@ -7997,7 +8946,10 @@ class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): stability :stability: experimental """ - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: """Creates a BinaryOperation. :param lhs: Left-hand side operand. @@ -8029,11 +8981,14 @@ def value(self) -> jsii.Number: @jsii.implements(IAnonymousImplementationProvider) -class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider"): +class AnonymousImplementationProvider( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(AnonymousImplementationProvider, self, []) @@ -8060,6 +9015,7 @@ class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"): stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Bell, self, []) @@ -8085,7 +9041,11 @@ def rung(self, value: bool) -> None: jsii.set(self, "rung", value) -@jsii.data_type(jsii_type="jsii-calc.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) +@jsii.data_type( + jsii_type="jsii-calc.ChildStruct982", + jsii_struct_bases=[ParentStruct982], + name_mapping={"foo": "foo", "bar": "bar"}, +) class ChildStruct982(ParentStruct982): def __init__(self, *, foo: str, bar: jsii.Number) -> None: """ @@ -8096,8 +9056,8 @@ def __init__(self, *, foo: str, bar: jsii.Number) -> None: :stability: experimental """ self._values = { - 'foo': foo, - 'bar': bar, + "foo": foo, + "bar": bar, } @builtins.property @@ -8106,7 +9066,7 @@ def foo(self) -> str: stability :stability: experimental """ - return self._values.get('foo') + return self._values.get("foo") @builtins.property def bar(self) -> jsii.Number: @@ -8114,7 +9074,7 @@ def bar(self) -> jsii.Number: stability :stability: experimental """ - return self._values.get('bar') + return self._values.get("bar") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -8123,15 +9083,21 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "ChildStruct982(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) @jsii.implements(INonInternalInterface) -class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface"): +class ClassThatImplementsTheInternalInterface( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ClassThatImplementsTheInternalInterface, self, []) @@ -8189,11 +9155,15 @@ def d(self, value: str) -> None: @jsii.implements(INonInternalInterface) -class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface"): +class ClassThatImplementsThePrivateInterface( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(ClassThatImplementsThePrivateInterface, self, []) @@ -8251,15 +9221,21 @@ def e(self, value: str) -> None: @jsii.implements(IInterfaceWithProperties) -class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties"): +class ClassWithPrivateConstructorAndAutomaticProperties( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", +): """Class that implements interface properties automatically, but using a private constructor. stability :stability: experimental """ + @jsii.member(jsii_name="create") @builtins.classmethod - def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": + def create( + cls, read_only_string: str, read_write_string: str + ) -> "ClassWithPrivateConstructorAndAutomaticProperties": """ :param read_only_string: - :param read_write_string: - @@ -8293,25 +9269,34 @@ def read_write_string(self, value: str) -> None: @jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") -class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): +class IFriendlyRandomGenerator( + IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol +): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IFriendlyRandomGeneratorProxy pass -class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + +class _IFriendlyRandomGeneratorProxy( + jsii.proxy_for(IRandomNumberGenerator), + jsii.proxy_for(scope.jsii_calc_lib.IFriendly), +): """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" pass + @jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType") class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. @@ -8319,6 +9304,7 @@ class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Prot stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceThatShouldNotBeADataTypeProxy @@ -8339,7 +9325,9 @@ class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMeth stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType" + @builtins.property @jsii.member(jsii_name="otherValue") def other_value(self) -> str: @@ -8356,6 +9344,7 @@ class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IJSII417DerivedProxy @@ -8391,7 +9380,9 @@ class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): stability :stability: experimental """ + __jsii_type__ = "jsii-calc.IJSII417Derived" + @builtins.property @jsii.member(jsii_name="property") def property(self) -> str: @@ -8419,11 +9410,14 @@ def baz(self) -> None: @jsii.implements(IPublicInterface2) -class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass"): +class InbetweenClass( + PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(InbetweenClass, self, []) @@ -8436,11 +9430,16 @@ def ciao(self) -> str: return jsii.invoke(self, "ciao", []) -class JSII417Derived(JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417Derived"): +class JSII417Derived( + JSII417PublicBaseOfBase, + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.JSII417Derived", +): """ stability :stability: experimental """ + def __init__(self, property: str) -> None: """ :param property: - @@ -8483,6 +9482,7 @@ class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negat stability :stability: experimental """ + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: """ :param operand: - @@ -8539,12 +9539,23 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilder"): +class SupportsNiceJavaBuilder( + SupportsNiceJavaBuilderWithRequiredProps, + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.SupportsNiceJavaBuilder", +): """ stability :stability: experimental """ - def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: + + def __init__( + self, + id: jsii.Number, + default_bar: typing.Optional[jsii.Number] = None, + props: typing.Optional["SupportsNiceJavaBuilderProps"] = None, + *rest: str, + ) -> None: """ :param id: some identifier. :param default_bar: the default value of ``bar``. @@ -8582,6 +9593,7 @@ class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble" stability :stability: experimental """ + def __init__(self) -> None: jsii.create(DoubleTrouble, self, []) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py index e84388515d..5a3c3bd284 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py @@ -12,7 +12,9 @@ import scope.jsii_calc_base_of_base._jsii import scope.jsii_calc_lib._jsii -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load( + "jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz" +) __all__ = [ "__jsii_assembly__", diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py index e769852cb2..17356f0f91 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py @@ -13,12 +13,17 @@ import scope.jsii_calc_lib -class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"): +class CompositeOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.composition.CompositeOperation", +): """Abstract operation composed from an expression of other operations. stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _CompositeOperationProxy @@ -100,13 +105,16 @@ def string_style(self) -> "CompositionStringStyle": def string_style(self, value: "CompositionStringStyle") -> None: jsii.set(self, "stringStyle", value) - @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle") + @jsii.enum( + jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle" + ) class CompositionStringStyle(enum.Enum): """Style of .toString() output for CompositeOperation. stability :stability: experimental """ + NORMAL = "NORMAL" """Normal string expression. @@ -121,7 +129,9 @@ class CompositionStringStyle(enum.Enum): """ -class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): +class _CompositeOperationProxy( + CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): @builtins.property @jsii.member(jsii_name="expression") def expression(self) -> scope.jsii_calc_lib.Value: diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py index be5697ee4d..19c60636d5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py @@ -11,11 +11,14 @@ from .._jsii import * -class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base"): +class Base( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base" +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Base, self, []) @@ -33,11 +36,16 @@ def prop(self, value: str) -> None: jsii.set(self, "prop", value) -class Derived(Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived"): +class Derived( + Base, + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Derived, self, []) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py index f07e287712..1c9f355178 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py @@ -11,11 +11,15 @@ from .._jsii import * -class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo"): +class Foo( + metaclass=jsii.JSIIMeta, + jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", +): """ stability :stability: experimental """ + def __init__(self) -> None: jsii.create(Foo, self, []) @@ -33,8 +37,12 @@ def bar(self, value: typing.Optional[str]) -> None: jsii.set(self, "bar", value) -@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class Hello(): +@jsii.data_type( + jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", + jsii_struct_bases=[], + name_mapping={"foo": "foo"}, +) +class Hello: def __init__(self, *, foo: jsii.Number) -> None: """ :param foo: @@ -43,7 +51,7 @@ def __init__(self, *, foo: jsii.Number) -> None: :stability: experimental """ self._values = { - 'foo': foo, + "foo": foo, } @builtins.property @@ -52,7 +60,7 @@ def foo(self) -> jsii.Number: stability :stability: experimental """ - return self._values.get('foo') + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -61,7 +69,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "Hello(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py index 178720d98e..cda30a2163 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py @@ -11,8 +11,12 @@ from .._jsii import * -@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class Hello(): +@jsii.data_type( + jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", + jsii_struct_bases=[], + name_mapping={"foo": "foo"}, +) +class Hello: def __init__(self, *, foo: jsii.Number) -> None: """ :param foo: @@ -21,7 +25,7 @@ def __init__(self, *, foo: jsii.Number) -> None: :stability: experimental """ self._values = { - 'foo': foo, + "foo": foo, } @builtins.property @@ -30,7 +34,7 @@ def foo(self) -> jsii.Number: stability :stability: experimental """ - return self._values.get('foo') + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -39,7 +43,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "Hello(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py index 729bcdc19c..5d63911e34 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py @@ -11,11 +11,14 @@ from .._jsii import * -class ClassWithSelf(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf"): +class ClassWithSelf( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf" +): """ stability :stability: experimental """ + def __init__(self_, self: str) -> None: """ :param self: - @@ -45,11 +48,14 @@ def self(self) -> str: return jsii.get(self, "self") -class ClassWithSelfKwarg(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg"): +class ClassWithSelfKwarg( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg" +): """ stability :stability: experimental """ + def __init__(self_, *, self: str) -> None: """ :param self: @@ -77,6 +83,7 @@ class IInterfaceWithSelf(jsii.compat.Protocol): stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithSelfProxy @@ -92,12 +99,14 @@ def method(self_, self: jsii.Number) -> str: ... -class _IInterfaceWithSelfProxy(): +class _IInterfaceWithSelfProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.PythonSelf.IInterfaceWithSelf" + @jsii.member(jsii_name="method") def method(self_, self: jsii.Number) -> str: """ @@ -109,8 +118,12 @@ def method(self_, self: jsii.Number) -> str: return jsii.invoke(self_, "method", [self]) -@jsii.data_type(jsii_type="jsii-calc.PythonSelf.StructWithSelf", jsii_struct_bases=[], name_mapping={'self': 'self'}) -class StructWithSelf(): +@jsii.data_type( + jsii_type="jsii-calc.PythonSelf.StructWithSelf", + jsii_struct_bases=[], + name_mapping={"self": "self"}, +) +class StructWithSelf: def __init__(self_, *, self: str) -> None: """ :param self: @@ -119,7 +132,7 @@ def __init__(self_, *, self: str) -> None: :stability: experimental """ self_._values = { - 'self': self, + "self": self, } @builtins.property @@ -128,7 +141,7 @@ def self(self) -> str: stability :stability: experimental """ - return self._values.get('self') + return self._values.get("self") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -137,7 +150,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'StructWithSelf(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "StructWithSelf(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py index 9b60c4e08a..37ceaee3e7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py @@ -10,9 +10,9 @@ from .._jsii import * -from .. import (AllTypes as _AllTypes_b08307c5) -from .child import (Awesomeness as _Awesomeness_d37a24df, Goodness as _Goodness_2df26737) -from .nested_submodule.deeply_nested import (INamespaced as _INamespaced_e2f386ad) +from .. import AllTypes as _AllTypes_b08307c5 +from .child import Awesomeness as _Awesomeness_d37a24df, Goodness as _Goodness_2df26737 +from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad @jsii.implements(_INamespaced_e2f386ad) @@ -21,6 +21,7 @@ class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): stability :stability: experimental """ + def __init__(self) -> None: """ stability diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py index 01cd470677..4e441e3685 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py @@ -10,11 +10,15 @@ from ..._jsii import * -from .. import (MyClass as _MyClass_a2fdc0b6) +from .. import MyClass as _MyClass_a2fdc0b6 -@jsii.data_type(jsii_type="jsii-calc.submodule.back_references.MyClassReference", jsii_struct_bases=[], name_mapping={'reference': 'reference'}) -class MyClassReference(): +@jsii.data_type( + jsii_type="jsii-calc.submodule.back_references.MyClassReference", + jsii_struct_bases=[], + name_mapping={"reference": "reference"}, +) +class MyClassReference: def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None: """ :param reference: @@ -23,7 +27,7 @@ def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None: :stability: experimental """ self._values = { - 'reference': reference, + "reference": reference, } @builtins.property @@ -32,7 +36,7 @@ def reference(self) -> _MyClass_a2fdc0b6: stability :stability: experimental """ - return self._values.get('reference') + return self._values.get("reference") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -41,7 +45,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'MyClassReference(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "MyClassReference(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py index e3eee7a961..7546ef5720 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py @@ -17,6 +17,7 @@ class Awesomeness(enum.Enum): stability :stability: experimental """ + AWESOME = "AWESOME" """It was awesome! @@ -24,12 +25,14 @@ class Awesomeness(enum.Enum): :stability: experimental """ + @jsii.enum(jsii_type="jsii-calc.submodule.child.Goodness") class Goodness(enum.Enum): """ stability :stability: experimental """ + PRETTY_GOOD = "PRETTY_GOOD" """It's pretty good. @@ -49,11 +52,15 @@ class Goodness(enum.Enum): :stability: experimental """ -class InnerClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass"): + +class InnerClass( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass" +): """ stability :stability: experimental """ + def __init__(self) -> None: """ stability @@ -71,7 +78,9 @@ def STATIC_PROP(cls) -> "SomeStruct": return jsii.sget(cls, "staticProp") -class OuterClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass"): +class OuterClass( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass" +): """Checks that classes can self-reference during initialization. see @@ -79,6 +88,7 @@ class OuterClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.O stability :stability: experimental """ + def __init__(self) -> None: """ stability @@ -102,14 +112,20 @@ class SomeEnum(enum.Enum): stability :stability: experimental """ + SOME = "SOME" """ stability :stability: experimental """ -@jsii.data_type(jsii_type="jsii-calc.submodule.child.SomeStruct", jsii_struct_bases=[], name_mapping={'prop': 'prop'}) -class SomeStruct(): + +@jsii.data_type( + jsii_type="jsii-calc.submodule.child.SomeStruct", + jsii_struct_bases=[], + name_mapping={"prop": "prop"}, +) +class SomeStruct: def __init__(self, *, prop: "SomeEnum") -> None: """ :param prop: @@ -118,7 +134,7 @@ def __init__(self, *, prop: "SomeEnum") -> None: :stability: experimental """ self._values = { - 'prop': prop, + "prop": prop, } @builtins.property @@ -127,7 +143,7 @@ def prop(self) -> "SomeEnum": stability :stability: experimental """ - return self._values.get('prop') + return self._values.get("prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -136,11 +152,17 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'SomeStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "SomeStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) -@jsii.data_type(jsii_type="jsii-calc.submodule.child.Structure", jsii_struct_bases=[], name_mapping={'bool': 'bool'}) -class Structure(): +@jsii.data_type( + jsii_type="jsii-calc.submodule.child.Structure", + jsii_struct_bases=[], + name_mapping={"bool": "bool"}, +) +class Structure: def __init__(self, *, bool: bool) -> None: """ :param bool: @@ -149,7 +171,7 @@ def __init__(self, *, bool: bool) -> None: :stability: experimental """ self._values = { - 'bool': bool, + "bool": bool, } @builtins.property @@ -158,7 +180,7 @@ def bool(self) -> bool: stability :stability: experimental """ - return self._values.get('bool') + return self._values.get("bool") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -167,7 +189,9 @@ def __ne__(self, rhs) -> bool: return not (rhs == self) def __repr__(self) -> str: - return 'Structure(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "Structure(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) __all__ = [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py index 3091322c07..efd2ae9d4a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py @@ -10,16 +10,20 @@ from ..._jsii import * -from ..child import (Goodness as _Goodness_2df26737) -from .deeply_nested import (INamespaced as _INamespaced_e2f386ad) +from ..child import Goodness as _Goodness_2df26737 +from .deeply_nested import INamespaced as _INamespaced_e2f386ad @jsii.implements(_INamespaced_e2f386ad) -class Namespaced(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.submodule.nested_submodule.Namespaced"): +class Namespaced( + metaclass=jsii.JSIIAbstractClass, + jsii_type="jsii-calc.submodule.nested_submodule.Namespaced", +): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _NamespacedProxy diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py index c81e52e8c5..ee0b9ce2f2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py @@ -11,12 +11,15 @@ from ...._jsii import * -@jsii.interface(jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced") +@jsii.interface( + jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" +) class INamespaced(jsii.compat.Protocol): """ stability :stability: experimental """ + @builtins.staticmethod def __jsii_proxy_class__(): return _INamespacedProxy @@ -31,12 +34,14 @@ def defined_at(self) -> str: ... -class _INamespacedProxy(): +class _INamespacedProxy: """ stability :stability: experimental """ + __jsii_type__ = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + @builtins.property @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: From 2dc1b2127295c7b91e95571e6cba246785d98ea3 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 1 Jul 2020 12:40:58 +0200 Subject: [PATCH 02/18] fix(kernel): tarball unpacking does not behave like 'npm install' (#1766) In it's wisdom, `npm install` does override the process' `umask` to `0o022` before unpackging the tarball, to ensure the produced install has the kind of permissions that one would expect, regardless of the system-configured `umask`. Because `@jsii/kernel` did not reproduce this behavior, loaded libraries could be unpacked with unexpectedly tight permissions, leading to weird issues when those files were used in contexts that required those permissions. For example, this is the cause of aws/aws-cdk#8233. Fixes #1765 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/@jsii/kernel/lib/kernel.ts | 25 ++++++++---- packages/@jsii/kernel/test/kernel.test.ts | 22 ++++++++++ packages/jsii-calc/lib/compliance.ts | 17 ++++++++ packages/jsii-calc/test/assembly.jsii | 36 ++++++++++++++++- .../.jsii | 36 ++++++++++++++++- .../Tests/CalculatorNamespace/UmaskCheck.cs | 40 +++++++++++++++++++ .../jsii/tests/calculator/UmaskCheck.java | 32 +++++++++++++++ .../amazon/jsii/tests/calculator/$Module.txt | 1 + .../python/src/jsii_calc/__init__.py | 21 ++++++++++ .../test/__snapshots__/jsii-tree.test.js.snap | 10 +++++ .../__snapshots__/type-system.test.js.snap | 1 + 11 files changed, 231 insertions(+), 10 deletions(-) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java diff --git a/packages/@jsii/kernel/lib/kernel.ts b/packages/@jsii/kernel/lib/kernel.ts index 573f184b11..7256d97cc3 100644 --- a/packages/@jsii/kernel/lib/kernel.ts +++ b/packages/@jsii/kernel/lib/kernel.ts @@ -107,14 +107,23 @@ export class Kernel { // Create the install directory (there may be several path components for @scoped/packages) fs.mkdirpSync(packageDir); - // untar the archive to its final location - tar.extract({ - strict: true, - file: req.tarball, - cwd: packageDir, - strip: 1, // Removes the 'package/' path element from entries - sync: true, - }); + + // Force umask to have npm-install-like permissions + const originalUmask = process.umask(0o022); + try { + // untar the archive to its final location + tar.extract({ + cwd: packageDir, + file: req.tarball, + strict: true, + strip: 1, // Removes the 'package/' path element from entries + sync: true, + unlink: true, + }); + } finally { + // Reset umask to the initial value + process.umask(originalUmask); + } // read .jsii metadata from the root of the package const jsiiMetadataFile = path.join(packageDir, spec.SPEC_FILE_NAME); diff --git a/packages/@jsii/kernel/test/kernel.test.ts b/packages/@jsii/kernel/test/kernel.test.ts index c35ac3cbd7..0e51eee4e6 100644 --- a/packages/@jsii/kernel/test/kernel.test.ts +++ b/packages/@jsii/kernel/test/kernel.test.ts @@ -75,6 +75,28 @@ defineTest.skip = function ( return defineTest(name, method, test.skip); }; +test('load preserves file permissions', async () => { + // Changing the umask to 077 (which would neutralize group/other permissions) + const originalUmask = process.umask(0o077); + + try { + const kernel = await createCalculatorSandbox( + 'load_preserves_file_permissions', + ); + + const result = kernel.sinvoke({ + fqn: 'jsii-calc.UmaskCheck', + method: 'mode', + }); + expect(result.result).toBe(0o644); + + return closeRecording(kernel); + } finally { + // Restore the original umask + process.umask(originalUmask); + } +}); + defineTest('stats() return sandbox statistics', (sandbox) => { const stats = sandbox.stats({}); expect(stats.objectCount).toBe(0); diff --git a/packages/jsii-calc/lib/compliance.ts b/packages/jsii-calc/lib/compliance.ts index 0973c4a3fd..e5f763fa62 100644 --- a/packages/jsii-calc/lib/compliance.ts +++ b/packages/jsii-calc/lib/compliance.ts @@ -2502,3 +2502,20 @@ export abstract class Isomorphism { return this; } } + +/** + * Checks the current file permissions are cool (no funky UMASK down-scoping happened) + * + * @see https://github.com/aws/jsii/issues/1765 + */ +export class UmaskCheck { + /** + * This should return 0o644 (-rw-r--r--) + */ + public static mode(): number { + // The bit-masking is to remove the file type information from .mode + return fs.statSync(__filename).mode & 0o0777; + } + + private constructor() {} +} diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 69ee752ae6..04b30af5dc 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -11869,6 +11869,40 @@ } ] }, + "jsii-calc.UmaskCheck": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/1765", + "stability": "experimental", + "summary": "Checks the current file permissions are cool (no funky UMASK down-scoping happened)." + }, + "fqn": "jsii-calc.UmaskCheck", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2511 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "This should return 0o644 (-rw-r--r--)." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2515 + }, + "name": "mode", + "returns": { + "type": { + "primitive": "number" + } + }, + "static": true + } + ], + "name": "UmaskCheck" + }, "jsii-calc.UnaryOperation": { "abstract": true, "assembly": "jsii-calc", @@ -13162,5 +13196,5 @@ } }, "version": "0.0.0", - "fingerprint": "miVjqwWxNOLMY7fR23c/SVvfiGqkgqLgG+18qp4f8MM=" + "fingerprint": "/0S7DMfFaE1kfja4CpY5k0Gl6j6opo50SUPCiBgy3Zg=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii index 69ee752ae6..04b30af5dc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii @@ -11869,6 +11869,40 @@ } ] }, + "jsii-calc.UmaskCheck": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/1765", + "stability": "experimental", + "summary": "Checks the current file permissions are cool (no funky UMASK down-scoping happened)." + }, + "fqn": "jsii-calc.UmaskCheck", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2511 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "This should return 0o644 (-rw-r--r--)." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2515 + }, + "name": "mode", + "returns": { + "type": { + "primitive": "number" + } + }, + "static": true + } + ], + "name": "UmaskCheck" + }, "jsii-calc.UnaryOperation": { "abstract": true, "assembly": "jsii-calc", @@ -13162,5 +13196,5 @@ } }, "version": "0.0.0", - "fingerprint": "miVjqwWxNOLMY7fR23c/SVvfiGqkgqLgG+18qp4f8MM=" + "fingerprint": "/0S7DMfFaE1kfja4CpY5k0Gl6j6opo50SUPCiBgy3Zg=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs new file mode 100644 index 0000000000..7acc1fa677 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs @@ -0,0 +1,40 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks the current file permissions are cool (no funky UMASK down-scoping happened). + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/jsii/issues/1765 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: "jsii-calc.UmaskCheck")] + public class UmaskCheck : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UmaskCheck(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UmaskCheck(DeputyProps props): base(props) + { + } + + /// This should return 0o644 (-rw-r--r--). + /// + /// Stability: Experimental + /// + [JsiiMethod(name: "mode", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] + public static double Mode() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java new file mode 100644 index 0000000000..e4709dc217 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java @@ -0,0 +1,32 @@ +package software.amazon.jsii.tests.calculator; + +/** + * Checks the current file permissions are cool (no funky UMASK down-scoping happened). + *

+ * EXPERIMENTAL + *

+ * @see https://github.com/aws/jsii/issues/1765 + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck") +public class UmaskCheck extends software.amazon.jsii.JsiiObject { + + protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * This should return 0o644 (-rw-r--r--). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class); + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt index af8a15b4e1..e14eae141e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt @@ -184,6 +184,7 @@ jsii-calc.SupportsNiceJavaBuilderWithRequiredProps=software.amazon.jsii.tests.ca jsii-calc.SyncVirtualMethods=software.amazon.jsii.tests.calculator.SyncVirtualMethods jsii-calc.Thrower=software.amazon.jsii.tests.calculator.Thrower jsii-calc.TopLevelStruct=software.amazon.jsii.tests.calculator.TopLevelStruct +jsii-calc.UmaskCheck=software.amazon.jsii.tests.calculator.UmaskCheck jsii-calc.UnaryOperation=software.amazon.jsii.tests.calculator.UnaryOperation jsii-calc.UnionProperties=software.amazon.jsii.tests.calculator.UnionProperties jsii-calc.UpcasingReflectable=software.amazon.jsii.tests.calculator.UpcasingReflectable diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index c0a2bf88b2..b076a707cb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -8452,6 +8452,26 @@ def __repr__(self) -> str: ) +class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UmaskCheck"): + """Checks the current file permissions are cool (no funky UMASK down-scoping happened). + + see + :see: https://github.com/aws/jsii/issues/1765 + stability + :stability: experimental + """ + + @jsii.member(jsii_name="mode") + @builtins.classmethod + def mode(cls) -> jsii.Number: + """This should return 0o644 (-rw-r--r--). + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mode", []) + + class UnaryOperation( scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, @@ -9794,6 +9814,7 @@ def next(self) -> jsii.Number: "SyncVirtualMethods", "Thrower", "TopLevelStruct", + "UmaskCheck", "UnaryOperation", "UnionProperties", "UpcasingReflectable", diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index f1d40c56a0..c3b3f1b3b1 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -1739,6 +1739,11 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── () initializer (experimental) │ │ └─┬ throwError() method (experimental) │ │ └── returns: void + │ ├─┬ class UmaskCheck (experimental) + │ │ └─┬ members + │ │ └─┬ static mode() method (experimental) + │ │ ├── static + │ │ └── returns: number │ ├─┬ class UnaryOperation (experimental) │ │ ├── base: Operation │ │ └─┬ members @@ -2799,6 +2804,7 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class SupportsNiceJavaBuilderWithRequiredProps │ ├── class SyncVirtualMethods │ ├── class Thrower + │ ├── class UmaskCheck │ ├─┬ class UnaryOperation │ │ └── base: Operation │ ├─┬ class UpcasingReflectable @@ -3731,6 +3737,9 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── () initializer │ │ └── throwError() method + │ ├─┬ class UmaskCheck + │ │ └─┬ members + │ │ └── static mode() method │ ├─┬ class UnaryOperation │ │ └─┬ members │ │ ├── (operand) initializer @@ -4301,6 +4310,7 @@ exports[`jsii-tree --types 1`] = ` │ ├── class SupportsNiceJavaBuilderWithRequiredProps │ ├── class SyncVirtualMethods │ ├── class Thrower + │ ├── class UmaskCheck │ ├── class UnaryOperation │ ├── class UpcasingReflectable │ ├── class UseBundledDependency diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap index 5c03ca46dd..b761c84f2d 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap @@ -125,6 +125,7 @@ Array [ "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "jsii-calc.SyncVirtualMethods", "jsii-calc.Thrower", + "jsii-calc.UmaskCheck", "jsii-calc.UnaryOperation", "jsii-calc.UpcasingReflectable", "jsii-calc.UseBundledDependency", From 1c6b65068ad7962d319076ad20172244c0c2cdcb Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 1 Jul 2020 14:21:12 +0200 Subject: [PATCH 03/18] chore: remove dependency on jq for fetch-dotnet-snk.sh (#1769) --- .gitignore | 1 + scripts/fetch-dotnet-snk.sh | 16 +++++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index dcc80b776c..0ca270e122 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ dist/ *.tsbuildinfo *.tabl.json *.swp +*.snk diff --git a/scripts/fetch-dotnet-snk.sh b/scripts/fetch-dotnet-snk.sh index a4d78e5f6f..a8b8e03ae4 100644 --- a/scripts/fetch-dotnet-snk.sh +++ b/scripts/fetch-dotnet-snk.sh @@ -18,9 +18,6 @@ fi echo "Retrieving SNK..." -apt update -y -apt install jq -y - if [ -z "${DOTNET_STRONG_NAME_ROLE_ARN:-}" ]; then echo "Strong name signing is enabled, but DOTNET_STRONG_NAME_ROLE_ARN is not set." echo_usage @@ -40,16 +37,17 @@ if [ -z "${DOTNET_STRONG_NAME_SECRET_ID:-}" ]; then fi ROLE=$(aws sts assume-role --region ${DOTNET_STRONG_NAME_SECRET_REGION:-} --role-arn ${DOTNET_STRONG_NAME_ROLE_ARN:-} --role-session-name "jsii-dotnet-snk") -export AWS_ACCESS_KEY_ID=$(echo $ROLE | jq -r .Credentials.AccessKeyId) -export AWS_SECRET_ACCESS_KEY=$(echo $ROLE | jq -r .Credentials.SecretAccessKey) -export AWS_SESSION_TOKEN=$(echo $ROLE | jq .Credentials.SessionToken) +export AWS_ACCESS_KEY_ID=$(node -p "(${ROLE}).Credentials.AccessKeyId") +export AWS_SECRET_ACCESS_KEY=$(node -p "(${ROLE}).Credentials.SecretAccessKey") +export AWS_SESSION_TOKEN=$(node -p "(${ROLE}).Credentials.SessionToken") SNK_SECRET=$(aws secretsmanager get-secret-value --region ${DOTNET_STRONG_NAME_SECRET_REGION:-} --secret-id ${DOTNET_STRONG_NAME_SECRET_ID:-}) TMP_DIR=$(mktemp -d) TMP_KEY="$TMP_DIR/key.snk" -echo $SNK_SECRET | jq -r .SecretBinary | base64 --decode > $TMP_KEY +node -p "(${SNK_SECRET}).SecretBinary" | base64 --decode > $TMP_KEY -cp $TMP_KEY packages/jsii-dotnet-jsonmodel/src/Amazon.JSII.JsonModel/ -cp $TMP_KEY packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime/ +cp $TMP_KEY packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/key.snk +cp $TMP_KEY packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/key.snk +cp $TMP_KEY packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/key.snk rm -rf $TMP_DIR From f45ea585387b11dad7052d5ccbfe25580e4eca9f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:21:49 +0200 Subject: [PATCH 04/18] chore(deps): bump Microsoft.Extensions.Logging (#1752) Bumps [Microsoft.Extensions.Logging](https://github.com/aspnet/Extensions) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/aspnet/Extensions/releases) - [Commits](https://github.com/aspnet/Extensions/compare/v3.1.4...v3.1.5) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 9163ddda96..cfa5d1fb4f 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -4,7 +4,7 @@ - + From 494ba0b78d599b36e33e3710179648c3d224170c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:11 +0200 Subject: [PATCH 05/18] chore(deps-dev): bump webpack-cli from 3.3.11 to 3.3.12 (#1756) Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.11 to 3.3.12. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.12/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.11...v3.3.12) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/runtime/package.json | 2 +- yarn.lock | 204 +++++++++------------------- 2 files changed, 65 insertions(+), 141 deletions(-) diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index d6efd6bd68..5eb9afdc15 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -54,7 +54,7 @@ "typescript": "~3.9.5", "wasm-loader": "^1.3.0", "webpack": "^4.43.0", - "webpack-cli": "^3.3.11" + "webpack-cli": "^3.3.12" }, "jest": { "collectCoverage": true, diff --git a/yarn.lock b/yarn.lock index 910de2e9d1..54945a746a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3174,7 +3174,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@6.0.5, cross-spawn@^6.0.0: +cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -3587,11 +3587,6 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= - emojis-list@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" @@ -3611,19 +3606,10 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0: dependencies: once "^1.4.0" -enhanced-resolve@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz#41c7e0bfdfe74ac1ffe1e57ad6a5c6c9f3742a7f" - integrity sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng== - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - tapable "^1.0.0" - -enhanced-resolve@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz#2937e2b8066cd0fe7ce0990a98f0d71a35189f66" - integrity sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA== +enhanced-resolve@^4.1.0, enhanced-resolve@^4.1.1: + version "4.2.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.2.0.tgz#5d43bda4a0fd447cb0ebbe71bef8deff8805ad0d" + integrity sha512-S7eiFb/erugyd1rLb6mQ3Vuq+EXHv5cpCkNqqIkYkBgN2QdFnyCZzFBleqwGEx4lgNGYij81BWnCrFNK7vxvjQ== dependencies: graceful-fs "^4.1.2" memory-fs "^0.5.0" @@ -4188,7 +4174,7 @@ find-up@^3.0.0: dependencies: locate-path "^3.0.0" -findup-sync@3.0.0: +findup-sync@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1" integrity sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg== @@ -4507,13 +4493,6 @@ glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@~7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -global-modules@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - global-modules@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" @@ -4523,6 +4502,13 @@ global-modules@^1.0.0: is-windows "^1.0.1" resolve-dir "^1.0.0" +global-modules@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" + integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== + dependencies: + global-prefix "^3.0.0" + global-prefix@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" @@ -4820,7 +4806,7 @@ import-fresh@^3.0.0: parent-module "^1.0.0" resolve-from "^4.0.0" -import-local@2.0.0, import-local@^2.0.0: +import-local@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== @@ -4938,15 +4924,10 @@ inquirer@^7.0.0, inquirer@^7.2.0: strip-ansi "^6.0.0" through "^2.3.6" -interpret@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296" - integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== - -invert-kv@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" - integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== +interpret@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" + integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== ip-regex@^2.1.0: version "2.1.0" @@ -5902,13 +5883,6 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== -lcid@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" - integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== - dependencies: - invert-kv "^2.0.0" - lerna@^3.22.1: version "3.22.1" resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.22.1.tgz#82027ac3da9c627fd8bf02ccfeff806a98e65b62" @@ -6006,16 +5980,7 @@ loader-runner@^2.4.0: resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== -loader-utils@1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7" - integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA== - dependencies: - big.js "^5.2.2" - emojis-list "^2.0.0" - json5 "^1.0.1" - -loader-utils@^1.1.0, loader-utils@^1.2.3: +loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA== @@ -6193,13 +6158,6 @@ makeerror@1.0.x: dependencies: tmpl "1.0.x" -map-age-cleaner@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" - integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== - dependencies: - p-defer "^1.0.0" - map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" @@ -6236,16 +6194,7 @@ mdurl@~1.0.1: resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4= -mem@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" - integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== - dependencies: - map-age-cleaner "^0.1.1" - mimic-fn "^2.0.0" - p-is-promise "^2.0.0" - -memory-fs@^0.4.0, memory-fs@^0.4.1: +memory-fs@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" integrity sha1-OpoguEYlI+RHz7x+i7gO1me/xVI= @@ -6376,7 +6325,7 @@ mimic-fn@^1.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== -mimic-fn@^2.0.0, mimic-fn@^2.1.0: +mimic-fn@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== @@ -6931,15 +6880,6 @@ os-homedir@^1.0.0: resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= -os-locale@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" - integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== - dependencies: - execa "^1.0.0" - lcid "^2.0.0" - mem "^4.0.0" - os-name@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801" @@ -6961,11 +6901,6 @@ osenv@^0.1.4, osenv@^0.1.5: os-homedir "^1.0.0" os-tmpdir "^1.0.0" -p-defer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" - integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= - p-each-series@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.1.0.tgz#961c8dd3f195ea96c747e636b262b800a6b1af48" @@ -6976,11 +6911,6 @@ p-finally@^1.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= -p-is-promise@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" - integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== - p-limit@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" @@ -8594,13 +8524,6 @@ strong-log-transformer@^2.0.0: minimist "^1.2.0" through "^2.3.4" -supports-color@6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" - integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== - dependencies: - has-flag "^3.0.0" - supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -8608,6 +8531,13 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" +supports-color@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" + integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== + dependencies: + has-flag "^3.0.0" + supports-color@^7.0.0, supports-color@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" @@ -9135,15 +9065,10 @@ uuid@^7.0.3: resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== -v8-compile-cache@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz#00f7494d2ae2b688cfe2899df6ed2c54bef91dbe" - integrity sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w== - -v8-compile-cache@^2.0.3: - version "2.1.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" - integrity sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g== +v8-compile-cache@^2.0.3, v8-compile-cache@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745" + integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ== v8-to-istanbul@^4.1.3: version "4.1.3" @@ -9268,22 +9193,22 @@ webidl-conversions@^6.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== -webpack-cli@^3.3.11: - version "3.3.11" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.11.tgz#3bf21889bf597b5d82c38f215135a411edfdc631" - integrity sha512-dXlfuml7xvAFwYUPsrtQAA9e4DOe58gnzSxhgrO/ZM/gyXTBowrsYeubyN4mqGhYdpXMFNyQ6emjJS9M7OBd4g== +webpack-cli@^3.3.12: + version "3.3.12" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.12.tgz#94e9ada081453cd0aa609c99e500012fd3ad2d4a" + integrity sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag== dependencies: - chalk "2.4.2" - cross-spawn "6.0.5" - enhanced-resolve "4.1.0" - findup-sync "3.0.0" - global-modules "2.0.0" - import-local "2.0.0" - interpret "1.2.0" - loader-utils "1.2.3" - supports-color "6.1.0" - v8-compile-cache "2.0.3" - yargs "13.2.4" + chalk "^2.4.2" + cross-spawn "^6.0.5" + enhanced-resolve "^4.1.1" + findup-sync "^3.0.0" + global-modules "^2.0.0" + import-local "^2.0.0" + interpret "^1.4.0" + loader-utils "^1.4.0" + supports-color "^6.1.0" + v8-compile-cache "^2.1.1" + yargs "^13.3.2" webpack-sources@^1.4.0, webpack-sources@^1.4.1: version "1.4.3" @@ -9568,7 +9493,7 @@ yargs-parser@^10.0.0: dependencies: camelcase "^4.1.0" -yargs-parser@^13.1.0: +yargs-parser@^13.1.2: version "13.1.2" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== @@ -9592,23 +9517,6 @@ yargs-parser@^18.1.1: camelcase "^5.0.0" decamelize "^1.2.0" -yargs@13.2.4: - version "13.2.4" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.2.4.tgz#0b562b794016eb9651b98bd37acf364aa5d6dc83" - integrity sha512-HG/DWAJa1PAnHT9JAhNa8AbAv3FPaiLzioSjCcmuXXhP8MlpHO5vwls4g4j6n30Z74GVQj8Xa62dWVx1QCGklg== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - os-locale "^3.1.0" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.0" - yargs@15.3.1, yargs@^15.3.1: version "15.3.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.3.1.tgz#9505b472763963e54afe60148ad27a330818e98b" @@ -9626,6 +9534,22 @@ yargs@15.3.1, yargs@^15.3.1: y18n "^4.0.0" yargs-parser "^18.1.1" +yargs@^13.3.2: + version "13.3.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" + integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.2" + yargs@^14.0.0, yargs@^14.2.2: version "14.2.3" resolved "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414" From 1887d0b079c7de3086f590d39d5a991cc8465a85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:20 +0200 Subject: [PATCH 06/18] chore(deps-dev): bump eslint from 7.2.0 to 7.3.1 (#1758) Bumps [eslint](https://github.com/eslint/eslint) from 7.2.0 to 7.3.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.2.0...v7.3.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 24 ++++++++++++++++++------ 14 files changed, 31 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 907329fa32..88349e5164 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.34.0", "@typescript-eslint/parser": "^2.34.0", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.0.0", "eslint-plugin-import": "^2.21.2", diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 13dc063d14..54ff1b2158 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -32,7 +32,7 @@ "@types/jest": "^26.0.0", "@types/node": "^10.17.26", "@types/tar": "^4.0.3", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "prettier": "^1.19.1", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 6febaaf059..7c8fccd68c 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -44,7 +44,7 @@ "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/tar": "^4.0.3", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 5eb9afdc15..8bd771c682 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -42,7 +42,7 @@ "@scope/jsii-calc-lib": "^0.0.0", "@types/jest": "^26.0.0", "@types/node": "^10.17.26", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 6370580681..6b86a67971 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@types/jest": "^26.0.0", "@types/node": "^10.17.26", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 9e03072a8b..5ded8d9ae5 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -40,7 +40,7 @@ "@types/fs-extra": "^8.1.0", "@types/jest": "^26.0.0", "@types/node": "^10.17.26", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 0bb998362f..3f1dfaae5b 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -24,7 +24,7 @@ "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index 0fbdc7aaf7..ddfd2adb52 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -47,7 +47,7 @@ "@types/node": "^10.17.26", "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.5", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index aa274f2d01..0de6232318 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -60,7 +60,7 @@ "@types/node": "^10.17.26", "@types/semver": "^7.2.0", "@types/yargs": "^15.0.5", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index f78c250362..9dfef4f49c 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -46,7 +46,7 @@ "@types/jest": "^26.0.0", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 6582cbc2f3..60cb2a9cac 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -22,7 +22,7 @@ "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 867df95f67..90f3461c49 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -57,7 +57,7 @@ "@types/semver": "^7.2.0", "@types/yargs": "^15.0.5", "clone": "^2.1.2", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 4dd4329570..f099910ca0 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@types/jest": "^26.0.0", "@types/node": "^10.17.26", - "eslint": "^7.2.0", + "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.0.1", diff --git a/yarn.lock b/yarn.lock index 54945a746a..ff36b3b037 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1955,6 +1955,11 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ansi-colors@^3.2.1: + version "3.2.4" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" + integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== + ansi-escapes@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" @@ -3615,6 +3620,13 @@ enhanced-resolve@^4.1.0, enhanced-resolve@^4.1.1: memory-fs "^0.5.0" tapable "^1.0.0" +enquirer@^2.3.5: + version "2.3.5" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.5.tgz#3ab2b838df0a9d8ab9e7dff235b0e8712ef92381" + integrity sha512-BNT1C08P9XD0vNg3J475yIUG+mVdp9T6towYFHUv897X0KoHBjB1shyrNmhmtHWKP17iSWgo7Gqh7BBuzLZMSA== + dependencies: + ansi-colors "^3.2.1" + entities@~1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" @@ -3815,10 +3827,10 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.2.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz#74415ac884874495f78ec2a97349525344c981fa" integrity sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ== -eslint@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.2.0.tgz#d41b2e47804b30dbabb093a967fb283d560082e6" - integrity sha512-B3BtEyaDKC5MlfDa2Ha8/D6DsS4fju95zs0hjS3HdGazw+LNayai38A25qMppK37wWGWNYSPOR6oYzlz5MHsRQ== +eslint@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.3.1.tgz#76392bd7e44468d046149ba128d1566c59acbe19" + integrity sha512-cQC/xj9bhWUcyi/RuMbRtC3I0eW8MH0jhRELSvpKYkWep3C6YZ2OkvcvJVUeO6gcunABmzptbXBuDoXsjHmfTA== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" @@ -3826,6 +3838,7 @@ eslint@^7.2.0: cross-spawn "^7.0.2" debug "^4.0.1" doctrine "^3.0.0" + enquirer "^2.3.5" eslint-scope "^5.1.0" eslint-utils "^2.0.0" eslint-visitor-keys "^1.2.0" @@ -3839,7 +3852,6 @@ eslint@^7.2.0: ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" - inquirer "^7.0.0" is-glob "^4.0.0" js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" @@ -4905,7 +4917,7 @@ inquirer@^6.2.0: strip-ansi "^5.1.0" through "^2.3.6" -inquirer@^7.0.0, inquirer@^7.2.0: +inquirer@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.2.0.tgz#63ce99d823090de7eb420e4bb05e6f3449aa389a" integrity sha512-E0c4rPwr9ByePfNlTIB8z51kK1s2n6jrHuJeEHENl/sbq2G/S1auvibgEwNR4uSyiU+PiYHqSwsgGiXjG8p5ZQ== From 6424d69cdc79b4121b0b34dfa98069750d8d2ddf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:30 +0200 Subject: [PATCH 07/18] chore(deps): bump jest from 26.0.1 to 26.1.0 (#1759) Bumps [jest](https://github.com/facebook/jest) from 26.0.1 to 26.1.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.0.1...v26.1.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 664 +++++++++++++------------ 13 files changed, 355 insertions(+), 333 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 54ff1b2158..70c0c4119e 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -20,7 +20,7 @@ "@octokit/rest": "^18.0.0", "dotenv": "^8.2.0", "fs-extra": "^9.0.1", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 7c8fccd68c..0e8e88b452 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -47,7 +47,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 8bd771c682..abefa863c4 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -45,7 +45,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^1.19.1", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 6b86a67971..a43a2b8e11 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -39,7 +39,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "prettier": "^1.19.1", "typescript": "~3.9.5", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 5ded8d9ae5..cb3d52230d 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -43,7 +43,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "prettier": "^2.0.5", "typescript": "~3.9.5" }, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 3f1dfaae5b..78c591e20e 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -27,7 +27,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", "typescript": "~3.9.5" diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index ddfd2adb52..3ac07d5983 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -50,7 +50,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 0de6232318..6ab9410809 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -63,7 +63,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 9dfef4f49c..af34248406 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -49,7 +49,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 60cb2a9cac..30cb39028c 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -25,7 +25,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 90f3461c49..2864adfed9 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -60,7 +60,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5" diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index f099910ca0..7cc81709a0 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -36,7 +36,7 @@ "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.0.1", + "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", "typescript": "~3.9.5" diff --git a/yarn.lock b/yarn.lock index ff36b3b037..deda817f30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -357,103 +357,103 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== -"@jest/console@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.0.1.tgz#62b3b2fa8990f3cbffbef695c42ae9ddbc8f4b39" - integrity sha512-9t1KUe/93coV1rBSxMmBAOIK3/HVpwxArCA1CxskKyRiv6o8J70V8C/V3OJminVCTa2M0hQI9AWRd5wxu2dAHw== +"@jest/console@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.1.0.tgz#f67c89e4f4d04dbcf7b052aed5ab9c74f915b954" + integrity sha512-+0lpTHMd/8pJp+Nd4lyip+/Iyf2dZJvcCqrlkeZQoQid+JlThA4M9vxHtheyrQ99jJTMQam+es4BcvZ5W5cC3A== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" chalk "^4.0.0" - jest-message-util "^26.0.1" - jest-util "^26.0.1" + jest-message-util "^26.1.0" + jest-util "^26.1.0" slash "^3.0.0" -"@jest/core@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.0.1.tgz#aa538d52497dfab56735efb00e506be83d841fae" - integrity sha512-Xq3eqYnxsG9SjDC+WLeIgf7/8KU6rddBxH+SCt18gEpOhAGYC/Mq+YbtlNcIdwjnnT+wDseXSbU0e5X84Y4jTQ== +"@jest/core@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.1.0.tgz#4580555b522de412a7998b3938c851e4f9da1c18" + integrity sha512-zyizYmDJOOVke4OO/De//aiv8b07OwZzL2cfsvWF3q9YssfpcKfcnZAwDY8f+A76xXSMMYe8i/f/LPocLlByfw== dependencies: - "@jest/console" "^26.0.1" - "@jest/reporters" "^26.0.1" - "@jest/test-result" "^26.0.1" - "@jest/transform" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/console" "^26.1.0" + "@jest/reporters" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/transform" "^26.1.0" + "@jest/types" "^26.1.0" ansi-escapes "^4.2.1" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" - jest-changed-files "^26.0.1" - jest-config "^26.0.1" - jest-haste-map "^26.0.1" - jest-message-util "^26.0.1" + jest-changed-files "^26.1.0" + jest-config "^26.1.0" + jest-haste-map "^26.1.0" + jest-message-util "^26.1.0" jest-regex-util "^26.0.0" - jest-resolve "^26.0.1" - jest-resolve-dependencies "^26.0.1" - jest-runner "^26.0.1" - jest-runtime "^26.0.1" - jest-snapshot "^26.0.1" - jest-util "^26.0.1" - jest-validate "^26.0.1" - jest-watcher "^26.0.1" + jest-resolve "^26.1.0" + jest-resolve-dependencies "^26.1.0" + jest-runner "^26.1.0" + jest-runtime "^26.1.0" + jest-snapshot "^26.1.0" + jest-util "^26.1.0" + jest-validate "^26.1.0" + jest-watcher "^26.1.0" micromatch "^4.0.2" p-each-series "^2.1.0" rimraf "^3.0.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.0.1.tgz#82f519bba71959be9b483675ee89de8c8f72a5c8" - integrity sha512-xBDxPe8/nx251u0VJ2dFAFz2H23Y98qdIaNwnMK6dFQr05jc+Ne/2np73lOAx+5mSBO/yuQldRrQOf6hP1h92g== +"@jest/environment@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.1.0.tgz#378853bcdd1c2443b4555ab908cfbabb851e96da" + integrity sha512-86+DNcGongbX7ai/KE/S3/NcUVZfrwvFzOOWX/W+OOTvTds7j07LtC+MgGydH5c8Ri3uIrvdmVgd1xFD5zt/xA== dependencies: - "@jest/fake-timers" "^26.0.1" - "@jest/types" "^26.0.1" - jest-mock "^26.0.1" + "@jest/fake-timers" "^26.1.0" + "@jest/types" "^26.1.0" + jest-mock "^26.1.0" -"@jest/fake-timers@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.0.1.tgz#f7aeff13b9f387e9d0cac9a8de3bba538d19d796" - integrity sha512-Oj/kCBnTKhm7CR+OJSjZty6N1bRDr9pgiYQr4wY221azLz5PHi08x/U+9+QpceAYOWheauLP8MhtSVFrqXQfhg== +"@jest/fake-timers@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.1.0.tgz#9a76b7a94c351cdbc0ad53e5a748789f819a65fe" + integrity sha512-Y5F3kBVWxhau3TJ825iuWy++BAuQzK/xEa+wD9vDH3RytW9f2DbMVodfUQC54rZDX3POqdxCgcKdgcOL0rYUpA== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" "@sinonjs/fake-timers" "^6.0.1" - jest-message-util "^26.0.1" - jest-mock "^26.0.1" - jest-util "^26.0.1" + jest-message-util "^26.1.0" + jest-mock "^26.1.0" + jest-util "^26.1.0" -"@jest/globals@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.0.1.tgz#3f67b508a7ce62b6e6efc536f3d18ec9deb19a9c" - integrity sha512-iuucxOYB7BRCvT+TYBzUqUNuxFX1hqaR6G6IcGgEqkJ5x4htNKo1r7jk1ji9Zj8ZMiMw0oB5NaA7k5Tx6MVssA== +"@jest/globals@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.1.0.tgz#6cc5d7cbb79b76b120f2403d7d755693cf063ab1" + integrity sha512-MKiHPNaT+ZoG85oMaYUmGHEqu98y3WO2yeIDJrs2sJqHhYOy3Z6F7F/luzFomRQ8SQ1wEkmahFAz2291Iv8EAw== dependencies: - "@jest/environment" "^26.0.1" - "@jest/types" "^26.0.1" - expect "^26.0.1" + "@jest/environment" "^26.1.0" + "@jest/types" "^26.1.0" + expect "^26.1.0" -"@jest/reporters@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.0.1.tgz#14ae00e7a93e498cec35b0c00ab21c375d9b078f" - integrity sha512-NWWy9KwRtE1iyG/m7huiFVF9YsYv/e+mbflKRV84WDoJfBqUrNRyDbL/vFxQcYLl8IRqI4P3MgPn386x76Gf2g== +"@jest/reporters@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.1.0.tgz#08952e90c90282e14ff49e927bdf1873617dae78" + integrity sha512-SVAysur9FOIojJbF4wLP0TybmqwDkdnFxHSPzHMMIYyBtldCW9gG+Q5xWjpMFyErDiwlRuPyMSJSU64A67Pazg== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.0.1" - "@jest/test-result" "^26.0.1" - "@jest/transform" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/console" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/transform" "^26.1.0" + "@jest/types" "^26.1.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" glob "^7.1.2" graceful-fs "^4.2.4" istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^4.0.0" + istanbul-lib-instrument "^4.0.3" istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.0.2" - jest-haste-map "^26.0.1" - jest-resolve "^26.0.1" - jest-util "^26.0.1" - jest-worker "^26.0.0" + jest-haste-map "^26.1.0" + jest-resolve "^26.1.0" + jest-util "^26.1.0" + jest-worker "^26.1.0" slash "^3.0.0" source-map "^0.6.0" string-length "^4.0.1" @@ -462,51 +462,51 @@ optionalDependencies: node-notifier "^7.0.0" -"@jest/source-map@^26.0.0": - version "26.0.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.0.0.tgz#fd7706484a7d3faf7792ae29783933bbf48a4749" - integrity sha512-S2Z+Aj/7KOSU2TfW0dyzBze7xr95bkm5YXNUqqCek+HE0VbNNSNzrRwfIi5lf7wvzDTSS0/ib8XQ1krFNyYgbQ== +"@jest/source-map@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.1.0.tgz#a6a020d00e7d9478f4b690167c5e8b77e63adb26" + integrity sha512-XYRPYx4eEVX15cMT9mstnO7hkHP3krNtKfxUYd8L7gbtia8JvZZ6bMzSwa6IQJENbudTwKMw5R1BePRD+bkEmA== dependencies: callsites "^3.0.0" graceful-fs "^4.2.4" source-map "^0.6.0" -"@jest/test-result@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.0.1.tgz#1ffdc1ba4bc289919e54b9414b74c9c2f7b2b718" - integrity sha512-oKwHvOI73ICSYRPe8WwyYPTtiuOAkLSbY8/MfWF3qDEd/sa8EDyZzin3BaXTqufir/O/Gzea4E8Zl14XU4Mlyg== +"@jest/test-result@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.1.0.tgz#a93fa15b21ad3c7ceb21c2b4c35be2e407d8e971" + integrity sha512-Xz44mhXph93EYMA8aYDz+75mFbarTV/d/x0yMdI3tfSRs/vh4CqSxgzVmCps1fPkHDCtn0tU8IH9iCKgGeGpfw== dependencies: - "@jest/console" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/console" "^26.1.0" + "@jest/types" "^26.1.0" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.0.1.tgz#b0563424728f3fe9e75d1442b9ae4c11da73f090" - integrity sha512-ssga8XlwfP8YjbDcmVhwNlrmblddMfgUeAkWIXts1V22equp2GMIHxm7cyeD5Q/B0ZgKPK/tngt45sH99yLLGg== +"@jest/test-sequencer@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.1.0.tgz#41a6fc8b850c3f33f48288ea9ea517c047e7f14e" + integrity sha512-Z/hcK+rTq56E6sBwMoQhSRDVjqrGtj1y14e2bIgcowARaIE1SgOanwx6gvY4Q9gTKMoZQXbXvptji+q5GYxa6Q== dependencies: - "@jest/test-result" "^26.0.1" + "@jest/test-result" "^26.1.0" graceful-fs "^4.2.4" - jest-haste-map "^26.0.1" - jest-runner "^26.0.1" - jest-runtime "^26.0.1" + jest-haste-map "^26.1.0" + jest-runner "^26.1.0" + jest-runtime "^26.1.0" -"@jest/transform@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.0.1.tgz#0e3ecbb34a11cd4b2080ed0a9c4856cf0ceb0639" - integrity sha512-pPRkVkAQ91drKGbzCfDOoHN838+FSbYaEAvBXvKuWeeRRUD8FjwXkqfUNUZL6Ke48aA/1cqq/Ni7kVMCoqagWA== +"@jest/transform@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.1.0.tgz#697f48898c2a2787c9b4cb71d09d7e617464e509" + integrity sha512-ICPm6sUXmZJieq45ix28k0s+d/z2E8CHDsq+WwtWI6kW8m7I8kPqarSEcUN86entHQ570ZBRci5OWaKL0wlAWw== dependencies: "@babel/core" "^7.1.0" - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" babel-plugin-istanbul "^6.0.0" chalk "^4.0.0" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.2.4" - jest-haste-map "^26.0.1" + jest-haste-map "^26.1.0" jest-regex-util "^26.0.0" - jest-util "^26.0.1" + jest-util "^26.1.0" micromatch "^4.0.2" pirates "^4.0.1" slash "^3.0.0" @@ -523,10 +523,10 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" -"@jest/types@^26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.0.1.tgz#b78333fbd113fa7aec8d39de24f88de8686dac67" - integrity sha512-IbtjvqI9+eS1qFnOIEL7ggWmT+iK/U+Vde9cGWtYb/b6XgKb3X44ZAe/z9YZzoAAZ/E92m0DqrilF934IGNnQA== +"@jest/types@^26.1.0": + version "26.1.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.1.0.tgz#f8afaaaeeb23b5cad49dd1f7779689941dcb6057" + integrity sha512-GXigDDsp6ZlNMhXQDeuy/iYCDsRIHJabWtDzvnn36+aqFfG14JmFV0e/iXxY4SP9vbXSiPNOWdehU5MeqrYHBQ== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^1.1.1" @@ -1407,6 +1407,17 @@ dependencies: "@sinonjs/commons" "^1.7.0" +"@types/babel__core@^7.0.0": + version "7.1.9" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.9.tgz#77e59d438522a6fb898fa43dc3455c6e72f3963d" + integrity sha512-sY2RsIJ5rpER1u3/aQ8OFSI7qGIy8o1NEEbgb2UaJcvOtXOMpd39ko723NBpjQFg9SIX7TXtjejZVGeIMLhoOw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + "@types/babel__core@^7.1.7": version "7.1.7" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.7.tgz#1dacad8840364a57c98d0dd4855c6dd3752c6b89" @@ -2213,16 +2224,16 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz#7e33d8f7d449b3f673cd72deb9abdc552dbe528e" integrity sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug== -babel-jest@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.0.1.tgz#450139ce4b6c17174b136425bda91885c397bc46" - integrity sha512-Z4GGmSNQ8pX3WS1O+6v3fo41YItJJZsVxG5gIQ+HuB/iuAQBJxMTHTwz292vuYws1LnHfwSRgoqI+nxdy/pcvw== +babel-jest@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.1.0.tgz#b20751185fc7569a0f135730584044d1cb934328" + integrity sha512-Nkqgtfe7j6PxLO6TnCQQlkMm8wdTdnIF8xrdpooHCuD5hXRzVEPbPneTJKknH5Dsv3L8ip9unHDAp48YQ54Dkg== dependencies: - "@jest/transform" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/transform" "^26.1.0" + "@jest/types" "^26.1.0" "@types/babel__core" "^7.1.7" babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.0.0" + babel-preset-jest "^26.1.0" chalk "^4.0.0" graceful-fs "^4.2.4" slash "^3.0.0" @@ -2238,13 +2249,14 @@ babel-plugin-istanbul@^6.0.0: istanbul-lib-instrument "^4.0.0" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.0.0.tgz#fd1d35f95cf8849fc65cb01b5e58aedd710b34a8" - integrity sha512-+AuoehOrjt9irZL7DOt2+4ZaTM6dlu1s5TTS46JBa0/qem4dy7VNW3tMb96qeEqcIh20LD73TVNtmVEeymTG7w== +babel-plugin-jest-hoist@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.1.0.tgz#c6a774da08247a28285620a64dfadbd05dd5233a" + integrity sha512-qhqLVkkSlqmC83bdMhM8WW4Z9tB+JkjqAqlbbohS9sJLT5Ha2vfzuKqg5yenXrAjOPG2YC0WiXdH3a9PvB+YYw== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" + "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" babel-preset-current-node-syntax@^0.1.2: @@ -2263,12 +2275,12 @@ babel-preset-current-node-syntax@^0.1.2: "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -babel-preset-jest@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.0.0.tgz#1eac82f513ad36c4db2e9263d7c485c825b1faa6" - integrity sha512-9ce+DatAa31DpR4Uir8g4Ahxs5K4W4L8refzt+qHWQANb6LhGcAEfIFgLUwk67oya2cCUd6t4eUMtO/z64ocNw== +babel-preset-jest@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.1.0.tgz#612f714e5b457394acfd863793c564cbcdb7d1c1" + integrity sha512-na9qCqFksknlEj5iSdw1ehMVR06LCCTkZLGKeEtxDDdhg8xpUF09m29Kvh1pRbZ07h7AQ5ttLYUwpXL4tO6w7w== dependencies: - babel-plugin-jest-hoist "^26.0.0" + babel-plugin-jest-hoist "^26.1.0" babel-preset-current-node-syntax "^0.1.2" babylon@^7.0.0-beta.39: @@ -3988,16 +4000,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.0.1.tgz#18697b9611a7e2725e20ba3ceadda49bc9865421" - integrity sha512-QcCy4nygHeqmbw564YxNbHTJlXh47dVID2BUP52cZFpLU9zHViMFK6h07cC1wf7GYCTIigTdAXhVua8Yl1FkKg== +expect@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.1.0.tgz#8c62e31d0f8d5a8ebb186ee81473d15dd2fbf7c8" + integrity sha512-QbH4LZXDsno9AACrN9eM0zfnby9G+OsdNgZUohjg/P0mLy1O+/bzTAJGT6VSIjVCe8yKM6SzEl/ckEOFBT7Vnw== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" ansi-styles "^4.0.0" jest-get-type "^26.0.0" - jest-matcher-utils "^26.0.1" - jest-message-util "^26.0.1" + jest-matcher-utils "^26.1.0" + jest-message-util "^26.1.0" jest-regex-util "^26.0.0" extend-shallow@^2.0.1: @@ -5318,6 +5330,16 @@ istanbul-lib-instrument@^4.0.0: istanbul-lib-coverage "^3.0.0" semver "^6.3.0" +istanbul-lib-instrument@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== + dependencies: + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" + istanbul-lib-report@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" @@ -5344,57 +5366,57 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.0.1.tgz#1334630c6a1ad75784120f39c3aa9278e59f349f" - integrity sha512-q8LP9Sint17HaE2LjxQXL+oYWW/WeeXMPE2+Op9X3mY8IEGFVc14xRxFjUuXUbcPAlDLhtWdIEt59GdQbn76Hw== +jest-changed-files@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.1.0.tgz#de66b0f30453bca2aff98e9400f75905da495305" + integrity sha512-HS5MIJp3B8t0NRKGMCZkcDUZo36mVRvrDETl81aqljT1S9tqiHRSpyoOvWg9ZilzZG9TDisDNaN1IXm54fLRZw== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" execa "^4.0.0" throat "^5.0.0" -jest-cli@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.0.1.tgz#3a42399a4cbc96a519b99ad069a117d955570cac" - integrity sha512-pFLfSOBcbG9iOZWaMK4Een+tTxi/Wcm34geqZEqrst9cZDkTQ1LZ2CnBrTlHWuYAiTMFr0EQeK52ScyFU8wK+w== +jest-cli@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.1.0.tgz#eb9ec8a18cf3b6aa556d9deaa9e24be12b43ad87" + integrity sha512-Imumvjgi3rU7stq6SJ1JUEMaV5aAgJYXIs0jPqdUnF47N/Tk83EXfmtvNKQ+SnFVI6t6mDOvfM3aA9Sg6kQPSw== dependencies: - "@jest/core" "^26.0.1" - "@jest/test-result" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/core" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/types" "^26.1.0" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" import-local "^3.0.2" is-ci "^2.0.0" - jest-config "^26.0.1" - jest-util "^26.0.1" - jest-validate "^26.0.1" + jest-config "^26.1.0" + jest-util "^26.1.0" + jest-validate "^26.1.0" prompts "^2.0.1" yargs "^15.3.1" -jest-config@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.0.1.tgz#096a3d4150afadf719d1fab00e9a6fb2d6d67507" - integrity sha512-9mWKx2L1LFgOXlDsC4YSeavnblN6A4CPfXFiobq+YYLaBMymA/SczN7xYTSmLaEYHZOcB98UdoN4m5uNt6tztg== +jest-config@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.1.0.tgz#9074f7539acc185e0113ad6d22ed589c16a37a73" + integrity sha512-ONTGeoMbAwGCdq4WuKkMcdMoyfs5CLzHEkzFOlVvcDXufZSaIWh/OXMLa2fwKXiOaFcqEw8qFr4VOKJQfn4CVw== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.0.1" - "@jest/types" "^26.0.1" - babel-jest "^26.0.1" + "@jest/test-sequencer" "^26.1.0" + "@jest/types" "^26.1.0" + babel-jest "^26.1.0" chalk "^4.0.0" deepmerge "^4.2.2" glob "^7.1.1" graceful-fs "^4.2.4" - jest-environment-jsdom "^26.0.1" - jest-environment-node "^26.0.1" + jest-environment-jsdom "^26.1.0" + jest-environment-node "^26.1.0" jest-get-type "^26.0.0" - jest-jasmine2 "^26.0.1" + jest-jasmine2 "^26.1.0" jest-regex-util "^26.0.0" - jest-resolve "^26.0.1" - jest-util "^26.0.1" - jest-validate "^26.0.1" + jest-resolve "^26.1.0" + jest-util "^26.1.0" + jest-validate "^26.1.0" micromatch "^4.0.2" - pretty-format "^26.0.1" + pretty-format "^26.1.0" jest-diff@^25.2.1: version "25.4.0" @@ -5406,15 +5428,15 @@ jest-diff@^25.2.1: jest-get-type "^25.2.6" pretty-format "^25.4.0" -jest-diff@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.0.1.tgz#c44ab3cdd5977d466de69c46929e0e57f89aa1de" - integrity sha512-odTcHyl5X+U+QsczJmOjWw5tPvww+y9Yim5xzqxVl/R1j4z71+fHW4g8qu1ugMmKdFdxw+AtQgs5mupPnzcIBQ== +jest-diff@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.1.0.tgz#00a549bdc936c9691eb4dc25d1fbd78bf456abb2" + integrity sha512-GZpIcom339y0OXznsEKjtkfKxNdg7bVbEofK8Q6MnevTIiR1jNhDWKhRX6X0SDXJlwn3dy59nZ1z55fLkAqPWg== dependencies: chalk "^4.0.0" diff-sequences "^26.0.0" jest-get-type "^26.0.0" - pretty-format "^26.0.1" + pretty-format "^26.1.0" jest-docblock@^26.0.0: version "26.0.0" @@ -5423,39 +5445,39 @@ jest-docblock@^26.0.0: dependencies: detect-newline "^3.0.0" -jest-each@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.0.1.tgz#633083061619302fc90dd8f58350f9d77d67be04" - integrity sha512-OTgJlwXCAR8NIWaXFL5DBbeS4QIYPuNASkzSwMCJO+ywo9BEa6TqkaSWsfR7VdbMLdgYJqSfQcIyjJCNwl5n4Q== +jest-each@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.1.0.tgz#e35449875009a22d74d1bda183b306db20f286f7" + integrity sha512-lYiSo4Igr81q6QRsVQq9LIkJW0hZcKxkIkHzNeTMPENYYDw/W/Raq28iJ0sLlNFYz2qxxeLnc5K2gQoFYlu2bA== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" chalk "^4.0.0" jest-get-type "^26.0.0" - jest-util "^26.0.1" - pretty-format "^26.0.1" - -jest-environment-jsdom@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.0.1.tgz#217690852e5bdd7c846a4e3b50c8ffd441dfd249" - integrity sha512-u88NJa3aptz2Xix2pFhihRBAatwZHWwSiRLBDBQE1cdJvDjPvv7ZGA0NQBxWwDDn7D0g1uHqxM8aGgfA9Bx49g== - dependencies: - "@jest/environment" "^26.0.1" - "@jest/fake-timers" "^26.0.1" - "@jest/types" "^26.0.1" - jest-mock "^26.0.1" - jest-util "^26.0.1" + jest-util "^26.1.0" + pretty-format "^26.1.0" + +jest-environment-jsdom@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.1.0.tgz#9dc7313ffe1b59761dad1fedb76e2503e5d37c5b" + integrity sha512-dWfiJ+spunVAwzXbdVqPH1LbuJW/kDL+FyqgA5YzquisHqTi0g9hquKif9xKm7c1bKBj6wbmJuDkeMCnxZEpUw== + dependencies: + "@jest/environment" "^26.1.0" + "@jest/fake-timers" "^26.1.0" + "@jest/types" "^26.1.0" + jest-mock "^26.1.0" + jest-util "^26.1.0" jsdom "^16.2.2" -jest-environment-node@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.0.1.tgz#584a9ff623124ff6eeb49e0131b5f7612b310b13" - integrity sha512-4FRBWcSn5yVo0KtNav7+5NH5Z/tEgDLp7VRQVS5tCouWORxj+nI+1tOLutM07Zb2Qi7ja+HEDoOUkjBSWZg/IQ== +jest-environment-node@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.1.0.tgz#8bb387b3eefb132eab7826f9a808e4e05618960b" + integrity sha512-DNm5x1aQH0iRAe9UYAkZenuzuJ69VKzDCAYISFHQ5i9e+2Tbeu2ONGY7YStubCLH8a1wdKBgqScYw85+ySxqxg== dependencies: - "@jest/environment" "^26.0.1" - "@jest/fake-timers" "^26.0.1" - "@jest/types" "^26.0.1" - jest-mock "^26.0.1" - jest-util "^26.0.1" + "@jest/environment" "^26.1.0" + "@jest/fake-timers" "^26.1.0" + "@jest/types" "^26.1.0" + jest-mock "^26.1.0" + jest-util "^26.1.0" jest-expect-message@^1.0.2: version "1.0.2" @@ -5472,19 +5494,19 @@ jest-get-type@^26.0.0: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.0.0.tgz#381e986a718998dbfafcd5ec05934be538db4039" integrity sha512-zRc1OAPnnws1EVfykXOj19zo2EMw5Hi6HLbFCSjpuJiXtOWAYIjNsHVSbpQ8bDX7L5BGYGI8m+HmKdjHYFF0kg== -jest-haste-map@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.0.1.tgz#40dcc03c43ac94d25b8618075804d09cd5d49de7" - integrity sha512-J9kBl/EdjmDsvyv7CiyKY5+DsTvVOScenprz/fGqfLg/pm1gdjbwwQ98nW0t+OIt+f+5nAVaElvn/6wP5KO7KA== +jest-haste-map@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.1.0.tgz#ef31209be73f09b0d9445e7d213e1b53d0d1476a" + integrity sha512-WeBS54xCIz9twzkEdm6+vJBXgRBQfdbbXD0dk8lJh7gLihopABlJmIQFdWSDDtuDe4PRiObsjZSUjbJ1uhWEpA== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" "@types/graceful-fs" "^4.1.2" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.4" - jest-serializer "^26.0.0" - jest-util "^26.0.1" - jest-worker "^26.0.0" + jest-serializer "^26.1.0" + jest-util "^26.1.0" + jest-worker "^26.1.0" micromatch "^4.0.2" sane "^4.0.3" walker "^1.0.7" @@ -5492,54 +5514,54 @@ jest-haste-map@^26.0.1: optionalDependencies: fsevents "^2.1.2" -jest-jasmine2@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.0.1.tgz#947c40ee816636ba23112af3206d6fa7b23c1c1c" - integrity sha512-ILaRyiWxiXOJ+RWTKupzQWwnPaeXPIoLS5uW41h18varJzd9/7I0QJGqg69fhTT1ev9JpSSo9QtalriUN0oqOg== +jest-jasmine2@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.1.0.tgz#4dfe349b2b2d3c6b3a27c024fd4cb57ac0ed4b6f" + integrity sha512-1IPtoDKOAG+MeBrKvvuxxGPJb35MTTRSDglNdWWCndCB3TIVzbLThRBkwH9P081vXLgiJHZY8Bz3yzFS803xqQ== dependencies: "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.0.1" - "@jest/source-map" "^26.0.0" - "@jest/test-result" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/environment" "^26.1.0" + "@jest/source-map" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/types" "^26.1.0" chalk "^4.0.0" co "^4.6.0" - expect "^26.0.1" + expect "^26.1.0" is-generator-fn "^2.0.0" - jest-each "^26.0.1" - jest-matcher-utils "^26.0.1" - jest-message-util "^26.0.1" - jest-runtime "^26.0.1" - jest-snapshot "^26.0.1" - jest-util "^26.0.1" - pretty-format "^26.0.1" + jest-each "^26.1.0" + jest-matcher-utils "^26.1.0" + jest-message-util "^26.1.0" + jest-runtime "^26.1.0" + jest-snapshot "^26.1.0" + jest-util "^26.1.0" + pretty-format "^26.1.0" throat "^5.0.0" -jest-leak-detector@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.0.1.tgz#79b19ab3f41170e0a78eb8fa754a116d3447fb8c" - integrity sha512-93FR8tJhaYIWrWsbmVN1pQ9ZNlbgRpfvrnw5LmgLRX0ckOJ8ut/I35CL7awi2ecq6Ca4lL59bEK9hr7nqoHWPA== +jest-leak-detector@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.1.0.tgz#039c3a07ebcd8adfa984b6ac015752c35792e0a6" + integrity sha512-dsMnKF+4BVOZwvQDlgn3MG+Ns4JuLv8jNvXH56bgqrrboyCbI1rQg6EI5rs+8IYagVcfVP2yZFKfWNZy0rK0Hw== dependencies: jest-get-type "^26.0.0" - pretty-format "^26.0.1" + pretty-format "^26.1.0" -jest-matcher-utils@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.0.1.tgz#12e1fc386fe4f14678f4cc8dbd5ba75a58092911" - integrity sha512-PUMlsLth0Azen8Q2WFTwnSkGh2JZ8FYuwijC8NR47vXKpsrKmA1wWvgcj1CquuVfcYiDEdj985u5Wmg7COEARw== +jest-matcher-utils@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.1.0.tgz#cf75a41bd413dda784f022de5a65a2a5c73a5c92" + integrity sha512-PW9JtItbYvES/xLn5mYxjMd+Rk+/kIt88EfH3N7w9KeOrHWaHrdYPnVHndGbsFGRJ2d5gKtwggCvkqbFDoouQA== dependencies: chalk "^4.0.0" - jest-diff "^26.0.1" + jest-diff "^26.1.0" jest-get-type "^26.0.0" - pretty-format "^26.0.1" + pretty-format "^26.1.0" -jest-message-util@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.0.1.tgz#07af1b42fc450b4cc8e90e4c9cef11b33ce9b0ac" - integrity sha512-CbK8uQREZ8umUfo8+zgIfEt+W7HAHjQCoRaNs4WxKGhAYBGwEyvxuK81FXa7VeB9pwDEXeeKOB2qcsNVCAvB7Q== +jest-message-util@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.1.0.tgz#52573fbb8f5cea443c4d1747804d7a238a3e233c" + integrity sha512-dY0+UlldiAJwNDJ08SF0HdF32g9PkbF2NRK/+2iMPU40O6q+iSn1lgog/u0UH8ksWoPv0+gNq8cjhYO2MFtT0g== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" "@types/stack-utils" "^1.0.1" chalk "^4.0.0" graceful-fs "^4.2.4" @@ -5547,12 +5569,12 @@ jest-message-util@^26.0.1: slash "^3.0.0" stack-utils "^2.0.2" -jest-mock@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.0.1.tgz#7fd1517ed4955397cf1620a771dc2d61fad8fd40" - integrity sha512-MpYTBqycuPYSY6xKJognV7Ja46/TeRbAZept987Zp+tuJvMN0YBWyyhG9mXyYQaU3SBI0TUlSaO5L3p49agw7Q== +jest-mock@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.1.0.tgz#80d8286da1f05a345fbad1bfd6fa49a899465d3d" + integrity sha512-1Rm8EIJ3ZFA8yCIie92UbxZWj9SuVmUGcyhLHyAhY6WI3NIct38nVcfOPWhJteqSn8V8e3xOMha9Ojfazfpovw== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" jest-pnp-resolver@^1.2.1: version "1.2.1" @@ -5564,165 +5586,165 @@ jest-regex-util@^26.0.0: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -jest-resolve-dependencies@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.0.1.tgz#607ba7ccc32151d185a477cff45bf33bce417f0b" - integrity sha512-9d5/RS/ft0vB/qy7jct/qAhzJsr6fRQJyGAFigK3XD4hf9kIbEH5gks4t4Z7kyMRhowU6HWm/o8ILqhaHdSqLw== +jest-resolve-dependencies@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.1.0.tgz#1ce36472f864a5dadf7dc82fa158e1c77955691b" + integrity sha512-fQVEPHHQ1JjHRDxzlLU/buuQ9om+hqW6Vo928aa4b4yvq4ZHBtRSDsLdKQLuCqn5CkTVpYZ7ARh2fbA8WkRE6g== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" jest-regex-util "^26.0.0" - jest-snapshot "^26.0.1" + jest-snapshot "^26.1.0" -jest-resolve@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.0.1.tgz#21d1ee06f9ea270a343a8893051aeed940cde736" - integrity sha512-6jWxk0IKZkPIVTvq6s72RH735P8f9eCJW3IM5CX/SJFeKq1p2cZx0U49wf/SdMlhaB/anann5J2nCJj6HrbezQ== +jest-resolve@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.1.0.tgz#a530eaa302b1f6fa0479079d1561dd69abc00e68" + integrity sha512-KsY1JV9FeVgEmwIISbZZN83RNGJ1CC+XUCikf/ZWJBX/tO4a4NvA21YixokhdR9UnmPKKAC4LafVixJBrwlmfg== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" chalk "^4.0.0" graceful-fs "^4.2.4" jest-pnp-resolver "^1.2.1" - jest-util "^26.0.1" + jest-util "^26.1.0" read-pkg-up "^7.0.1" resolve "^1.17.0" slash "^3.0.0" -jest-runner@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.0.1.tgz#ea03584b7ae4bacfb7e533d680a575a49ae35d50" - integrity sha512-CApm0g81b49Znm4cZekYQK67zY7kkB4umOlI2Dx5CwKAzdgw75EN+ozBHRvxBzwo1ZLYZ07TFxkaPm+1t4d8jA== +jest-runner@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.1.0.tgz#457f7fc522afe46ca6db1dccf19f87f500b3288d" + integrity sha512-elvP7y0fVDREnfqit0zAxiXkDRSw6dgCkzPCf1XvIMnSDZ8yogmSKJf192dpOgnUVykmQXwYYJnCx641uLTgcw== dependencies: - "@jest/console" "^26.0.1" - "@jest/environment" "^26.0.1" - "@jest/test-result" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/console" "^26.1.0" + "@jest/environment" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/types" "^26.1.0" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" - jest-config "^26.0.1" + jest-config "^26.1.0" jest-docblock "^26.0.0" - jest-haste-map "^26.0.1" - jest-jasmine2 "^26.0.1" - jest-leak-detector "^26.0.1" - jest-message-util "^26.0.1" - jest-resolve "^26.0.1" - jest-runtime "^26.0.1" - jest-util "^26.0.1" - jest-worker "^26.0.0" + jest-haste-map "^26.1.0" + jest-jasmine2 "^26.1.0" + jest-leak-detector "^26.1.0" + jest-message-util "^26.1.0" + jest-resolve "^26.1.0" + jest-runtime "^26.1.0" + jest-util "^26.1.0" + jest-worker "^26.1.0" source-map-support "^0.5.6" throat "^5.0.0" -jest-runtime@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.0.1.tgz#a121a6321235987d294168e282d52b364d7d3f89" - integrity sha512-Ci2QhYFmANg5qaXWf78T2Pfo6GtmIBn2rRaLnklRyEucmPccmCKvS9JPljcmtVamsdMmkyNkVFb9pBTD6si9Lw== - dependencies: - "@jest/console" "^26.0.1" - "@jest/environment" "^26.0.1" - "@jest/fake-timers" "^26.0.1" - "@jest/globals" "^26.0.1" - "@jest/source-map" "^26.0.0" - "@jest/test-result" "^26.0.1" - "@jest/transform" "^26.0.1" - "@jest/types" "^26.0.1" +jest-runtime@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.1.0.tgz#45a37af42115f123ed5c51f126c05502da2469cb" + integrity sha512-1qiYN+EZLmG1QV2wdEBRf+Ci8i3VSfIYLF02U18PiUDrMbhfpN/EAMMkJtT02jgJUoaEOpHAIXG6zS3QRMzRmA== + dependencies: + "@jest/console" "^26.1.0" + "@jest/environment" "^26.1.0" + "@jest/fake-timers" "^26.1.0" + "@jest/globals" "^26.1.0" + "@jest/source-map" "^26.1.0" + "@jest/test-result" "^26.1.0" + "@jest/transform" "^26.1.0" + "@jest/types" "^26.1.0" "@types/yargs" "^15.0.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.2.4" - jest-config "^26.0.1" - jest-haste-map "^26.0.1" - jest-message-util "^26.0.1" - jest-mock "^26.0.1" + jest-config "^26.1.0" + jest-haste-map "^26.1.0" + jest-message-util "^26.1.0" + jest-mock "^26.1.0" jest-regex-util "^26.0.0" - jest-resolve "^26.0.1" - jest-snapshot "^26.0.1" - jest-util "^26.0.1" - jest-validate "^26.0.1" + jest-resolve "^26.1.0" + jest-snapshot "^26.1.0" + jest-util "^26.1.0" + jest-validate "^26.1.0" slash "^3.0.0" strip-bom "^4.0.0" yargs "^15.3.1" -jest-serializer@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.0.0.tgz#f6c521ddb976943b93e662c0d4d79245abec72a3" - integrity sha512-sQGXLdEGWFAE4wIJ2ZaIDb+ikETlUirEOBsLXdoBbeLhTHkZUJwgk3+M8eyFizhM6le43PDCCKPA1hzkSDo4cQ== +jest-serializer@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.1.0.tgz#72a394531fc9b08e173dc7d297440ac610d95022" + integrity sha512-eqZOQG/0+MHmr25b2Z86g7+Kzd5dG9dhCiUoyUNJPgiqi38DqbDEOlHcNijyfZoj74soGBohKBZuJFS18YTJ5w== dependencies: graceful-fs "^4.2.4" -jest-snapshot@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.0.1.tgz#1baa942bd83d47b837a84af7fcf5fd4a236da399" - integrity sha512-jxd+cF7+LL+a80qh6TAnTLUZHyQoWwEHSUFJjkw35u3Gx+BZUNuXhYvDqHXr62UQPnWo2P6fvQlLjsU93UKyxA== +jest-snapshot@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.1.0.tgz#c36ed1e0334bd7bd2fe5ad07e93a364ead7e1349" + integrity sha512-YhSbU7eMTVQO/iRbNs8j0mKRxGp4plo7sJ3GzOQ0IYjvsBiwg0T1o0zGQAYepza7lYHuPTrG5J2yDd0CE2YxSw== dependencies: "@babel/types" "^7.0.0" - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" "@types/prettier" "^2.0.0" chalk "^4.0.0" - expect "^26.0.1" + expect "^26.1.0" graceful-fs "^4.2.4" - jest-diff "^26.0.1" + jest-diff "^26.1.0" jest-get-type "^26.0.0" - jest-matcher-utils "^26.0.1" - jest-message-util "^26.0.1" - jest-resolve "^26.0.1" - make-dir "^3.0.0" + jest-haste-map "^26.1.0" + jest-matcher-utils "^26.1.0" + jest-message-util "^26.1.0" + jest-resolve "^26.1.0" natural-compare "^1.4.0" - pretty-format "^26.0.1" + pretty-format "^26.1.0" semver "^7.3.2" -jest-util@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.0.1.tgz#72c4c51177b695fdd795ca072a6f94e3d7cef00a" - integrity sha512-byQ3n7ad1BO/WyFkYvlWQHTsomB6GIewBh8tlGtusiylAlaxQ1UpS0XYH0ngOyhZuHVLN79Qvl6/pMiDMSSG1g== +jest-util@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.1.0.tgz#80e85d4ba820decacf41a691c2042d5276e5d8d8" + integrity sha512-rNMOwFQevljfNGvbzNQAxdmXQ+NawW/J72dmddsK0E8vgxXCMtwQ/EH0BiWEIxh0hhMcTsxwAxINt7Lh46Uzbg== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" chalk "^4.0.0" graceful-fs "^4.2.4" is-ci "^2.0.0" - make-dir "^3.0.0" + micromatch "^4.0.2" -jest-validate@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.0.1.tgz#a62987e1da5b7f724130f904725e22f4e5b2e23c" - integrity sha512-u0xRc+rbmov/VqXnX3DlkxD74rHI/CfS5xaV2VpeaVySjbb1JioNVOyly5b56q2l9ZKe7bVG5qWmjfctkQb0bA== +jest-validate@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.1.0.tgz#942c85ad3d60f78250c488a7f85d8f11a29788e7" + integrity sha512-WPApOOnXsiwhZtmkDsxnpye+XLb/tUISP+H6cHjfUIXvlG+eKwP+isnivsxlHCPaO9Q5wvbhloIBkdF3qUn+Nw== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" camelcase "^6.0.0" chalk "^4.0.0" jest-get-type "^26.0.0" leven "^3.1.0" - pretty-format "^26.0.1" + pretty-format "^26.1.0" -jest-watcher@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.0.1.tgz#5b5e3ebbdf10c240e22a98af66d645631afda770" - integrity sha512-pdZPydsS8475f89kGswaNsN3rhP6lnC3/QDCppP7bg1L9JQz7oU9Mb/5xPETk1RHDCWeqmVC47M4K5RR7ejxFw== +jest-watcher@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.1.0.tgz#99812a0cd931f0cb3d153180426135ab83e4d8f2" + integrity sha512-ffEOhJl2EvAIki613oPsSG11usqnGUzIiK7MMX6hE4422aXOcVEG3ySCTDFLn1+LZNXGPE8tuJxhp8OBJ1pgzQ== dependencies: - "@jest/test-result" "^26.0.1" - "@jest/types" "^26.0.1" + "@jest/test-result" "^26.1.0" + "@jest/types" "^26.1.0" ansi-escapes "^4.2.1" chalk "^4.0.0" - jest-util "^26.0.1" + jest-util "^26.1.0" string-length "^4.0.1" -jest-worker@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.0.0.tgz#4920c7714f0a96c6412464718d0c58a3df3fb066" - integrity sha512-pPaYa2+JnwmiZjK9x7p9BoZht+47ecFCDFA/CJxspHzeDvQcfVBLWzCiWyo+EGrSiQMWZtCFo9iSvMZnAAo8vw== +jest-worker@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.1.0.tgz#65d5641af74e08ccd561c240e7db61284f82f33d" + integrity sha512-Z9P5pZ6UC+kakMbNJn+tA2RdVdNX5WH1x+5UCBZ9MxIK24pjYtFt96fK+UwBTrjLYm232g1xz0L3eTh51OW+yQ== dependencies: merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.0.1.tgz#5c51a2e58dff7525b65f169721767173bf832694" - integrity sha512-29Q54kn5Bm7ZGKIuH2JRmnKl85YRigp0o0asTc6Sb6l2ch1DCXIeZTLLFy9ultJvhkTqbswF5DEx4+RlkmCxWg== +jest@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.1.0.tgz#2f3aa7bcffb9bfd025473f83bbbf46a3af026263" + integrity sha512-LIti8jppw5BcQvmNJe4w2g1N/3V68HUfAv9zDVm7v+VAtQulGhH0LnmmiVkbNE4M4I43Bj2fXPiBGKt26k9tHw== dependencies: - "@jest/core" "^26.0.1" + "@jest/core" "^26.1.0" import-local "^3.0.2" - jest-cli "^26.0.1" + jest-cli "^26.1.0" js-tokens@^4.0.0: version "4.0.0" @@ -7288,12 +7310,12 @@ pretty-format@^25.2.1, pretty-format@^25.4.0: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-format@^26.0.1: - version "26.0.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.0.1.tgz#a4fe54fe428ad2fd3413ca6bbd1ec8c2e277e197" - integrity sha512-SWxz6MbupT3ZSlL0Po4WF/KujhQaVehijR2blyRDCzk9e45EaYMVhMBn49fnRuHxtkSpXTes1GxNpVmH86Bxfw== +pretty-format@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.1.0.tgz#272b9cd1f1a924ab5d443dc224899d7a65cb96ec" + integrity sha512-GmeO1PEYdM+non4BKCj+XsPJjFOJIPnsLewqhDVoqY1xo0yNmDas7tC2XwpMrRAHR3MaE2hPo37deX5OisJ2Wg== dependencies: - "@jest/types" "^26.0.1" + "@jest/types" "^26.1.0" ansi-regex "^5.0.0" ansi-styles "^4.0.0" react-is "^16.12.0" From db53b711586eb748d532f1af994f07e69f92832e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:39 +0200 Subject: [PATCH 08/18] chore(deps-dev): bump @types/jest from 26.0.0 to 26.0.3 (#1761) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.0 to 26.0.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 70c0c4119e..feaa30152f 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/dotenv": "^8.2.0", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "@types/tar": "^4.0.3", "eslint": "^7.3.1", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 0e8e88b452..5219fae1d1 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -40,7 +40,7 @@ "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/tar": "^4.0.3", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index abefa863c4..9bcaa8324c 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index a43a2b8e11..c670715c45 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -34,7 +34,7 @@ "jsonschema": "^1.2.6" }, "devDependencies": { - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index cb3d52230d..e4f3534ce9 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -38,7 +38,7 @@ "devDependencies": { "@types/decamelize": "^1.2.0", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 78c591e20e..79bdbef0ca 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -20,7 +20,7 @@ }, "devDependencies": { "@types/inquirer": "^6.5.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index 3ac07d5983..371b39d9a7 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/tar-fs": "^2.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 6ab9410809..1e83f36f06 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -55,7 +55,7 @@ "@types/clone": "^0.1.30", "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.26", "@types/semver": "^7.2.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index af34248406..eb8e2e555b 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -43,7 +43,7 @@ "devDependencies": { "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", "eslint": "^7.3.1", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 30cb39028c..6cd685cdb2 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.26", "@types/yargs": "^15.0.5", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 2864adfed9..4dbd765cde 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -51,7 +51,7 @@ "@types/clone": "^0.1.30", "@types/deep-equal": "^1.0.1", "@types/fs-extra": "^8.1.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", "@types/semver": "^7.2.0", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 7cc81709a0..35946ba038 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -31,7 +31,7 @@ "package": "package-js" }, "devDependencies": { - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.3", "@types/node": "^10.17.26", "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", diff --git a/yarn.lock b/yarn.lock index deda817f30..4e4435292c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1551,10 +1551,10 @@ dependencies: "@types/jest" "*" -"@types/jest@*", "@types/jest@^26.0.0": - version "26.0.0" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.0.tgz#a6d7573dffa9c68cbbdf38f2e0de26f159e11134" - integrity sha512-/yeMsH9HQ1RLORlXAwoLXe8S98xxvhNtUz3yrgrwbaxYjT+6SFPZZRksmRKRA6L5vsUtSHeN71viDOTTyYAD+g== +"@types/jest@*", "@types/jest@^26.0.3": + version "26.0.3" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.3.tgz#79534e0e94857171c0edc596db0ebe7cb7863251" + integrity sha512-v89ga1clpVL/Y1+YI0eIu1VMW+KU7Xl8PhylVtDKVWaSUHBHYPLXMQGBdrpHewaKoTvlXkksbYqPgz8b4cmRZg== dependencies: jest-diff "^25.2.1" pretty-format "^25.2.1" From c1ba6f1324d247dbe2b896a4aa7a7a5a97082f50 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:48 +0200 Subject: [PATCH 09/18] chore(deps-dev): bump @types/semver from 7.2.0 to 7.3.1 (#1762) Bumps [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) from 7.2.0 to 7.3.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/dotnet-runtime/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii/package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/@jsii/dotnet-runtime/package.json b/packages/@jsii/dotnet-runtime/package.json index 661a251b20..02d89d3d21 100644 --- a/packages/@jsii/dotnet-runtime/package.json +++ b/packages/@jsii/dotnet-runtime/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@jsii/runtime": "^0.0.0", "@types/node": "^10.17.26", - "@types/semver": "^7.2.0", + "@types/semver": "^7.3.1", "jsii-build-tools": "^0.0.0", "semver": "^7.3.2", "typescript": "~3.9.5" diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 1e83f36f06..ed627c41c5 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -58,7 +58,7 @@ "@types/jest": "^26.0.3", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.26", - "@types/semver": "^7.2.0", + "@types/semver": "^7.3.1", "@types/yargs": "^15.0.5", "eslint": "^7.3.1", "eslint-config-prettier": "^6.11.0", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 4dbd765cde..e6a3af0b53 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -54,7 +54,7 @@ "@types/jest": "^26.0.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.26", - "@types/semver": "^7.2.0", + "@types/semver": "^7.3.1", "@types/yargs": "^15.0.5", "clone": "^2.1.2", "eslint": "^7.3.1", diff --git a/yarn.lock b/yarn.lock index 4e4435292c..cde64e765c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1608,10 +1608,10 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.0.0.tgz#dc85454b953178cc6043df5208b9e949b54a3bc4" integrity sha512-/rM+sWiuOZ5dvuVzV37sUuklsbg+JPOP8d+nNFlo2ZtfpzPiPvh1/gc8liWOLBqe+sR+ZM7guPaIcTt6UZTo7Q== -"@types/semver@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.2.0.tgz#0d72066965e910531e1db4621c15d0ca36b8d83b" - integrity sha512-TbB0A8ACUWZt3Y6bQPstW9QNbhNeebdgLX4T/ZfkrswAfUzRiXrgd9seol+X379Wa589Pu4UEx9Uok0D4RjRCQ== +"@types/semver@^7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.1.tgz#7a9a5d595b6d873f338c867dcef64df289468cfa" + integrity sha512-ooD/FJ8EuwlDKOI6D9HWxgIgJjMg2cuziXm/42npDC8y4NjxplBUn9loewZiBNCt44450lHAU0OSb51/UqXeag== dependencies: "@types/node" "*" From 25d23bc1ecddd0eafa891d09488689f148094034 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:22:56 +0200 Subject: [PATCH 10/18] chore(deps-dev): bump eslint-plugin-import from 2.21.2 to 2.22.0 (#1764) Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.21.2 to 2.22.0. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.21.2...v2.22.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 88349e5164..bfa67e6a30 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "eslint": "^7.3.1", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.0.0", - "eslint-plugin-import": "^2.21.2", + "eslint-plugin-import": "^2.22.0", "lerna": "^3.22.1", "standard-version": "^8.0.0" }, diff --git a/yarn.lock b/yarn.lock index cde64e765c..5cf250e5fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3785,10 +3785,10 @@ eslint-module-utils@^2.6.0: debug "^2.6.9" pkg-dir "^2.0.0" -eslint-plugin-import@^2.21.2: - version "2.21.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.21.2.tgz#8fef77475cc5510801bedc95f84b932f7f334a7c" - integrity sha512-FEmxeGI6yaz+SnEB6YgNHlQK1Bs2DKLM+YF+vuTk5H8J9CLbJLtlPvRFgZZ2+sXiKAlN5dpdlrWOjK8ZoZJpQA== +eslint-plugin-import@^2.22.0: + version "2.22.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz#92f7736fe1fde3e2de77623c838dd992ff5ffb7e" + integrity sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg== dependencies: array-includes "^3.1.1" array.prototype.flat "^1.2.3" From cacbedb29194443a8a172e5dfca3ecc859744c19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:23:03 +0200 Subject: [PATCH 11/18] chore(deps-dev): bump source-map-loader from 1.0.0 to 1.0.1 (#1767) Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader) from 1.0.0 to 1.0.1. - [Release notes](https://github.com/webpack-contrib/source-map-loader/releases) - [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v1.0.0...v1.0.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/runtime/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 9bcaa8324c..5c625172b3 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -50,7 +50,7 @@ "jsii-calc": "^0.0.0", "prettier": "^1.19.1", "source-map": "^0.7.3", - "source-map-loader": "^1.0.0", + "source-map-loader": "^1.0.1", "typescript": "~3.9.5", "wasm-loader": "^1.3.0", "webpack": "^4.43.0", diff --git a/yarn.lock b/yarn.lock index 5cf250e5fe..7a89af2cfe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8160,10 +8160,10 @@ source-list-map@^2.0.0: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== -source-map-loader@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-1.0.0.tgz#240b88575a9b0d27214aeecbd4e7686af95cfa56" - integrity sha512-ZayyQCSCrQazN50aCvuS84lJT4xc1ZAcykH5blHaBdVveSwjiFK8UGMPvao0ho54DTb0Jf7m57uRRG/YYUZ2Fg== +source-map-loader@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-1.0.1.tgz#703df5345b0816734f0336c1ccee8af66e082061" + integrity sha512-DE4CJyfCVoxFLsHyuVE9Sjcib8cs5qdmOq3wcev1Un/r6F2AfQJDhag4rzpPPA48A2QZyV3CTbc+NGoFMfKIOQ== dependencies: data-urls "^2.0.0" iconv-lite "^0.5.1" From c174ac5822d9923c904ec38b3f7d0513310ef973 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 1 Jul 2020 14:52:38 +0200 Subject: [PATCH 12/18] fix(python): relative import missing for kwargs types (#1768) Relative import statements were not emitted for lifted keyword argument types, occasionally leading to invalid python modules. This adds the necessary feature to collect required imports from keyword arguments. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii-calc/lib/submodule/my-class.ts | 4 +- packages/jsii-calc/test/assembly.jsii | 26 +++++++- packages/jsii-pacmak/lib/targets/python.ts | 3 + .../.jsii | 26 +++++++- .../CalculatorNamespace/Submodule/MyClass.cs | 13 +++- .../tests/calculator/submodule/MyClass.java | 59 ++++++++++++++++++- .../src/jsii_calc/submodule/__init__.py | 24 +++++++- .../test/__snapshots__/jsii-tree.test.js.snap | 11 +++- 8 files changed, 151 insertions(+), 15 deletions(-) diff --git a/packages/jsii-calc/lib/submodule/my-class.ts b/packages/jsii-calc/lib/submodule/my-class.ts index aa7e40a83c..f286717c8f 100644 --- a/packages/jsii-calc/lib/submodule/my-class.ts +++ b/packages/jsii-calc/lib/submodule/my-class.ts @@ -1,5 +1,5 @@ import { nested_submodule } from './nested_submodule'; -import { Awesomeness, Goodness } from './child'; +import { Awesomeness, Goodness, SomeStruct } from './child'; import { AllTypes } from '..'; export class MyClass implements nested_submodule.deeplyNested.INamespaced { @@ -8,5 +8,5 @@ export class MyClass implements nested_submodule.deeplyNested.INamespaced { public readonly awesomeness = Awesomeness.AWESOME; public allTypes?: AllTypes; - public constructor() { } + public constructor(public readonly props: SomeStruct) { } } diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 04b30af5dc..f3a438b09c 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -12789,7 +12789,15 @@ "initializer": { "docs": { "stability": "experimental" - } + }, + "parameters": [ + { + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" + } + } + ] }, "interfaces": [ "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" @@ -12845,6 +12853,20 @@ "fqn": "jsii-calc.submodule.child.Goodness" } }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 11 + }, + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" + } + }, { "docs": { "stability": "experimental" @@ -13196,5 +13218,5 @@ } }, "version": "0.0.0", - "fingerprint": "/0S7DMfFaE1kfja4CpY5k0Gl6j6opo50SUPCiBgy3Zg=" + "fingerprint": "5Tv5ECDhqPZgUeGoaL8LTa8pvOZnosdszen+rYjvQ8s=" } diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 8c5b7ffba9..328351d363 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -402,6 +402,9 @@ abstract class BaseMethod implements PythonBase { ...this.parameters.map((param) => toTypeName(param).requiredImports(context), ), + ...(this.liftedProp?.properties?.map((prop) => + toTypeName(prop.type).requiredImports(context), + ) ?? []), ); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii index 04b30af5dc..f3a438b09c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii @@ -12789,7 +12789,15 @@ "initializer": { "docs": { "stability": "experimental" - } + }, + "parameters": [ + { + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" + } + } + ] }, "interfaces": [ "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" @@ -12845,6 +12853,20 @@ "fqn": "jsii-calc.submodule.child.Goodness" } }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 11 + }, + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" + } + }, { "docs": { "stability": "experimental" @@ -13196,5 +13218,5 @@ } }, "version": "0.0.0", - "fingerprint": "/0S7DMfFaE1kfja4CpY5k0Gl6j6opo50SUPCiBgy3Zg=" + "fingerprint": "5Tv5ECDhqPZgUeGoaL8LTa8pvOZnosdszen+rYjvQ8s=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs index 3f9ac65bff..977d3ba5ac 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs @@ -7,13 +7,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass", parametersJson: "[{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.submodule.child.SomeStruct\"}}]")] public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { /// /// Stability: Experimental /// - public MyClass(): base(new DeputyProps(new object[]{})) + public MyClass(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct props): base(new DeputyProps(new object[]{props})) { } @@ -58,6 +58,15 @@ public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Go get => GetInstanceProperty(); } + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeStruct\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct Props + { + get => GetInstanceProperty(); + } + /// /// Stability: Experimental /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java index 0ac621ba45..3768bf78bd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java @@ -18,11 +18,13 @@ protected MyClass(final software.amazon.jsii.JsiiObject.InitializationMode initi /** * EXPERIMENTAL + *

+ * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public MyClass() { + public MyClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** @@ -50,6 +52,14 @@ public MyClass() { return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); } + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct getProps() { + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); + } + /** * EXPERIMENTAL */ @@ -65,4 +75,49 @@ public MyClass() { public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) { this.jsiiSet("allTypes", value); } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create() { + return new Builder(); + } + + private final software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder props; + + private Builder() { + this.props = new software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder(); + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param prop This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder prop(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + this.props.prop(prop); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.submodule.MyClass build() { + return new software.amazon.jsii.tests.calculator.submodule.MyClass( + this.props.build() + ); + } + } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py index 37ceaee3e7..dbfd234f69 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py @@ -11,7 +11,12 @@ from .._jsii import * from .. import AllTypes as _AllTypes_b08307c5 -from .child import Awesomeness as _Awesomeness_d37a24df, Goodness as _Goodness_2df26737 +from .child import ( + SomeStruct as _SomeStruct_91627123, + SomeEnum as _SomeEnum_b2e41d92, + Awesomeness as _Awesomeness_d37a24df, + Goodness as _Goodness_2df26737, +) from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad @@ -22,12 +27,16 @@ class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): :stability: experimental """ - def __init__(self) -> None: + def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None: """ + :param prop: + stability :stability: experimental """ - jsii.create(MyClass, self, []) + props = _SomeStruct_91627123(prop=prop) + + jsii.create(MyClass, self, [props]) @builtins.property @jsii.member(jsii_name="awesomeness") @@ -56,6 +65,15 @@ def goodness(self) -> _Goodness_2df26737: """ return jsii.get(self, "goodness") + @builtins.property + @jsii.member(jsii_name="props") + def props(self) -> _SomeStruct_91627123: + """ + stability + :stability: experimental + """ + return jsii.get(self, "props") + @builtins.property @jsii.member(jsii_name="allTypes") def all_types(self) -> typing.Optional[_AllTypes_b08307c5]: diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index c3b3f1b3b1..9cf59a43d5 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -174,7 +174,10 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ class MyClass (experimental) │ │ ├── interfaces: INamespaced │ │ └─┬ members - │ │ ├── () initializer (experimental) + │ │ ├─┬ (props) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ └─┬ props + │ │ │ └── type: jsii-calc.submodule.child.SomeStruct │ │ ├─┬ awesomeness property (experimental) │ │ │ ├── immutable │ │ │ └── type: jsii-calc.submodule.child.Awesomeness @@ -184,6 +187,9 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ goodness property (experimental) │ │ │ ├── immutable │ │ │ └── type: jsii-calc.submodule.child.Goodness + │ │ ├─┬ props property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: jsii-calc.submodule.child.SomeStruct │ │ └─┬ allTypes property (experimental) │ │ └── type: Optional │ └─┬ types @@ -3062,10 +3068,11 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ types │ │ └─┬ class MyClass │ │ └─┬ members - │ │ ├── () initializer + │ │ ├── (props) initializer │ │ ├── awesomeness property │ │ ├── definedAt property │ │ ├── goodness property + │ │ ├── props property │ │ └── allTypes property │ └─┬ types │ ├─┬ class AbstractClass From 2ee97cf969737aeb26b1487d708ea6db6ae1a58a Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 1 Jul 2020 17:43:47 +0200 Subject: [PATCH 13/18] chore: temporarily disable strong name signing (#1770) --- scripts/fetch-dotnet-snk.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/fetch-dotnet-snk.sh b/scripts/fetch-dotnet-snk.sh index a8b8e03ae4..7c22c6b466 100644 --- a/scripts/fetch-dotnet-snk.sh +++ b/scripts/fetch-dotnet-snk.sh @@ -16,6 +16,11 @@ if [ -z "${DOTNET_STRONG_NAME_ENABLED:-}" ]; then exit 0 fi +# TODO: FIXME LATER +echo "!!! STRONG NAME SIGNING TEMPORARILY DISABLED !!!" +exit 0 +# END OF TODO + echo "Retrieving SNK..." if [ -z "${DOTNET_STRONG_NAME_ROLE_ARN:-}" ]; then From ec1d9b886d05404319d0bea791d76da45e160513 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 17:48:26 +0200 Subject: [PATCH 14/18] chore(deps): bump Microsoft.Extensions.Logging.Console (#1753) Bumps [Microsoft.Extensions.Logging.Console](https://github.com/aspnet/Extensions) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/aspnet/Extensions/releases) - [Commits](https://github.com/aspnet/Extensions/compare/v3.1.4...v3.1.5) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index cfa5d1fb4f..a22f52ec73 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -5,7 +5,7 @@ - + From d16ad8024706ddb77a16d72e2bd6ae4217835272 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2020 19:02:15 +0200 Subject: [PATCH 15/18] chore(deps): bump decamelize from 1.2.0 to 4.0.0 (#1747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [decamelize](https://github.com/sindresorhus/decamelize) from 1.2.0 to 4.0.0. - [Release notes](https://github.com/sindresorhus/decamelize/releases) - [Commits](https://github.com/sindresorhus/decamelize/compare/v1.2.0...v4.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 👨🏼‍💻 Romain Marcadier-Muller --- packages/codemaker/lib/case-utils.ts | 3 ++- packages/codemaker/package.json | 3 +-- tsconfig-base.json | 1 + tsconfig.json | 2 -- yarn.lock | 10 +++++----- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/codemaker/lib/case-utils.ts b/packages/codemaker/lib/case-utils.ts index b49da3e03d..a911feb376 100644 --- a/packages/codemaker/lib/case-utils.ts +++ b/packages/codemaker/lib/case-utils.ts @@ -1,5 +1,6 @@ import * as camelcase from 'camelcase'; -import * as decamelize from 'decamelize'; +// eslint-disable-next-line @typescript-eslint/no-require-imports +import decamelize = require('decamelize'); const COMMON_ABBREVIATIONS = ['KiB', 'MiB', 'GiB']; diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index e4f3534ce9..bc9835580c 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -32,11 +32,10 @@ }, "dependencies": { "camelcase": "^6.0.0", - "decamelize": "^1.2.0", + "decamelize": "^4.0.0", "fs-extra": "^9.0.1" }, "devDependencies": { - "@types/decamelize": "^1.2.0", "@types/fs-extra": "^8.1.0", "@types/jest": "^26.0.3", "@types/node": "^10.17.26", diff --git a/tsconfig-base.json b/tsconfig-base.json index c91ef6c223..36781b9c1e 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -6,6 +6,7 @@ "strict": true, /* Enable all strict type-checking options. */ "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */ + "esModuleInterop": false, /* Turn on babel and typesystem compatibility with ES modules */ "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file. */ "noUnusedLocals": true, /* Report errors on unused locals. */ diff --git a/tsconfig.json b/tsconfig.json index 8b462437c8..60adb018b7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,6 @@ { "path": "packages/jsii-rosetta" }, { "path": "packages/jsii" }, { "path": "packages/oo-ascii-tree" }, - { "path": "packages/@jsii/dotnet-analyzers" }, - { "path": "packages/@jsii/dotnet-jsonmodel" }, { "path": "packages/@jsii/dotnet-runtime-test" }, { "path": "packages/@jsii/dotnet-runtime" }, { "path": "packages/@jsii/integ-test" }, diff --git a/yarn.lock b/yarn.lock index 7a89af2cfe..6579baabfc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1466,11 +1466,6 @@ resolved "https://registry.yarnpkg.com/@types/commonmark/-/commonmark-0.27.4.tgz#8f42990e5cf3b6b95bd99eaa452e157aab679b82" integrity sha512-7koSjp08QxKoS1/+3T15+kD7+vqOUvZRHvM8PutF3Xsk5aAEkdlIGRsHJ3/XsC3izoqTwBdRW/vH7rzCKkIicA== -"@types/decamelize@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@types/decamelize/-/decamelize-1.2.0.tgz#aabc2306e6c229356636cab7fcb823cfe170f056" - integrity sha512-viw/LG++yGW9GP7ggfDpR+qpBz/NHFEbRTWNumTzebeUlURwfX+sjQfdfbiEoxXgJrj+1G8p4VN/bLquur7Hmg== - "@types/deep-equal@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@types/deep-equal/-/deep-equal-1.0.1.tgz#71cfabb247c22bcc16d536111f50c0ed12476b03" @@ -3341,6 +3336,11 @@ decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= +decamelize@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" + integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== + decimal.js@^10.2.0: version "10.2.0" resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.0.tgz#39466113a9e036111d02f82489b5fd6b0b5ed231" From 8e61361a4012363be7aeaf75d6b853d0f2b8a47e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2020 10:04:53 +0200 Subject: [PATCH 16/18] chore(deps): bump inquirer from 7.2.0 to 7.3.0 (#1771) Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 7.2.0 to 7.3.0. - [Release notes](https://github.com/SBoudrias/Inquirer.js/releases) - [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@7.2.0...inquirer@7.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/jsii-config/package.json | 2 +- yarn.lock | 35 ++++++++++++++++++------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 79bdbef0ca..110a2162fa 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@jsii/spec": "^0.0.0", - "inquirer": "^7.2.0", + "inquirer": "^7.3.0", "yargs": "^15.3.1" }, "jest": { diff --git a/yarn.lock b/yarn.lock index 6579baabfc..17174c9560 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2632,10 +2632,10 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72" - integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A== +chalk@^4.0.0, chalk@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" @@ -2728,6 +2728,11 @@ cli-width@^2.0.0: resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + cliui@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" @@ -4929,21 +4934,21 @@ inquirer@^6.2.0: strip-ansi "^5.1.0" through "^2.3.6" -inquirer@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.2.0.tgz#63ce99d823090de7eb420e4bb05e6f3449aa389a" - integrity sha512-E0c4rPwr9ByePfNlTIB8z51kK1s2n6jrHuJeEHENl/sbq2G/S1auvibgEwNR4uSyiU+PiYHqSwsgGiXjG8p5ZQ== +inquirer@^7.3.0: + version "7.3.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.0.tgz#aa3e7cb0c18a410c3c16cdd2bc9dcbe83c4d333e" + integrity sha512-K+LZp6L/6eE5swqIcVXrxl21aGDU4S50gKH0/d96OMQnSBCyGyZl/oZhbkVmdp5sBoINHd4xZvFSARh2dk6DWA== dependencies: ansi-escapes "^4.2.1" - chalk "^3.0.0" + chalk "^4.1.0" cli-cursor "^3.1.0" - cli-width "^2.0.0" + cli-width "^3.0.0" external-editor "^3.0.3" figures "^3.0.0" lodash "^4.17.15" mute-stream "0.0.8" run-async "^2.4.0" - rxjs "^6.5.3" + rxjs "^6.6.0" string-width "^4.1.0" strip-ansi "^6.0.0" through "^2.3.6" @@ -7882,10 +7887,10 @@ run-queue@^1.0.0, run-queue@^1.0.3: dependencies: aproba "^1.1.1" -rxjs@^6.4.0, rxjs@^6.5.3: - version "6.5.5" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec" - integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== +rxjs@^6.4.0, rxjs@^6.6.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.0.tgz#af2901eedf02e3a83ffa7f886240ff9018bbec84" + integrity sha512-3HMA8z/Oz61DUHe+SdOiQyzIf4tOx5oQHmMir7IZEu6TMqCLHT4LRcmNaUS0NwOz8VLvmmBduMsoaUvMaIiqzg== dependencies: tslib "^1.9.0" From a46dbcfce22b5e2b8f97145957969a6ae4841e3b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2020 10:05:08 +0200 Subject: [PATCH 17/18] chore(deps): bump typescript from 3.9.5 to 3.9.6 (#1772) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Romain Marcadier --- packages/@jsii/dotnet-runtime-test/package.json | 2 +- packages/@jsii/dotnet-runtime/package.json | 2 +- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/java-runtime/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 4 ++-- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/@jsii/dotnet-runtime-test/package.json b/packages/@jsii/dotnet-runtime-test/package.json index 03565961c5..16a83adac7 100644 --- a/packages/@jsii/dotnet-runtime-test/package.json +++ b/packages/@jsii/dotnet-runtime-test/package.json @@ -34,6 +34,6 @@ "@types/node": "^10.17.26", "jsii-calc": "^0.0.0", "jsii-pacmak": "^0.0.0", - "typescript": "~3.9.5" + "typescript": "~3.9.6" } } diff --git a/packages/@jsii/dotnet-runtime/package.json b/packages/@jsii/dotnet-runtime/package.json index 02d89d3d21..073595667d 100644 --- a/packages/@jsii/dotnet-runtime/package.json +++ b/packages/@jsii/dotnet-runtime/package.json @@ -43,6 +43,6 @@ "@types/semver": "^7.3.1", "jsii-build-tools": "^0.0.0", "semver": "^7.3.2", - "typescript": "~3.9.5" + "typescript": "~3.9.6" } } diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index feaa30152f..59de7fd2f5 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -36,7 +36,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "prettier": "^1.19.1", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "jest": { "errorOnDeprecated": true, diff --git a/packages/@jsii/java-runtime/package.json b/packages/@jsii/java-runtime/package.json index 605e080701..7873213b37 100644 --- a/packages/@jsii/java-runtime/package.json +++ b/packages/@jsii/java-runtime/package.json @@ -35,6 +35,6 @@ "@jsii/runtime": "^0.0.0", "@types/node": "^10.17.26", "jsii-build-tools": "^0.0.0", - "typescript": "~3.9.5" + "typescript": "~3.9.6" } } diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 5219fae1d1..b8fb4ea06b 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -52,7 +52,7 @@ "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^1.19.1", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "jest": { "collectCoverage": true, diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 5c625172b3..fd123a4fe4 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -51,7 +51,7 @@ "prettier": "^1.19.1", "source-map": "^0.7.3", "source-map-loader": "^1.0.1", - "typescript": "~3.9.5", + "typescript": "~3.9.6", "wasm-loader": "^1.3.0", "webpack": "^4.43.0", "webpack-cli": "^3.3.12" diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index c670715c45..81efdf385d 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -42,7 +42,7 @@ "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "prettier": "^1.19.1", - "typescript": "~3.9.5", + "typescript": "~3.9.6", "typescript-json-schema": "^0.42.0" }, "jest": { diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index bc9835580c..833c2375ef 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -44,7 +44,7 @@ "eslint-plugin-prettier": "^3.1.4", "jest": "^26.1.0", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "jest": { "collectCoverage": true, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 110a2162fa..3d8b61ac22 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -30,7 +30,7 @@ "jest": "^26.1.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "dependencies": { "@jsii/spec": "^0.0.0", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index 371b39d9a7..af2cbb4c3d 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -37,7 +37,7 @@ "fs-extra": "^9.0.1", "jsii-reflect": "^0.0.0", "log4js": "^6.3.0", - "typescript": "~3.9.5", + "typescript": "~3.9.6", "yargs": "^15.3.1" }, "devDependencies": { diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index ed627c41c5..e1ddad5e7a 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -68,7 +68,7 @@ "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "keywords": [ "jsii", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index eb8e2e555b..783a7fdb43 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -54,7 +54,7 @@ "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "jest": { "collectCoverage": true, diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 6cd685cdb2..675dd72f39 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -31,13 +31,13 @@ "memory-streams": "^0.1.3", "mock-fs": "^4.12.0", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "dependencies": { "@jsii/spec": "^0.0.0", "commonmark": "^0.29.1", "fs-extra": "^9.0.1", - "typescript": "~3.9.5", + "typescript": "~3.9.6", "xmldom": "^0.3.0", "yargs": "^15.3.1" }, diff --git a/packages/jsii/package.json b/packages/jsii/package.json index e6a3af0b53..e3ef61cb1e 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -44,7 +44,7 @@ "semver-intersect": "^1.4.0", "sort-json": "^2.0.0", "spdx-license-list": "^6.2.0", - "typescript": "~3.9.5", + "typescript": "~3.9.6", "yargs": "^15.3.1" }, "devDependencies": { diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 35946ba038..97ae24f7ba 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -39,7 +39,7 @@ "jest": "^26.1.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", - "typescript": "~3.9.5" + "typescript": "~3.9.6" }, "jest": { "collectCoverage": true, diff --git a/yarn.lock b/yarn.lock index 17174c9560..8e97232875 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8960,10 +8960,10 @@ typescript-json-schema@^0.42.0: typescript "^3.5.3" yargs "^14.0.0" -typescript@^3.5.3, typescript@~3.9.5: - version "3.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36" - integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ== +typescript@^3.5.3, typescript@~3.9.6: + version "3.9.6" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.6.tgz#8f3e0198a34c3ae17091b35571d3afd31999365a" + integrity sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw== uglify-js@^3.1.4: version "3.9.1" From 7c7a2ad6c02ee61aec0adba5a59988e74dd4e522 Mon Sep 17 00:00:00 2001 From: AWS CDK Team Date: Thu, 2 Jul 2020 08:10:44 +0000 Subject: [PATCH 18/18] chore(release): 1.8.0 --- CHANGELOG.md | 8 ++++++++ lerna.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ddd3d451a..a385713892 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.8.0](https://github.com/aws/jsii/compare/v1.7.0...v1.8.0) (2020-07-02) + + +### Bug Fixes + +* **kernel:** tarball unpacking does not behave like 'npm install' ([#1766](https://github.com/aws/jsii/issues/1766)) ([2dc1b21](https://github.com/aws/jsii/commit/2dc1b2127295c7b91e95571e6cba246785d98ea3)), closes [aws/aws-cdk#8233](https://github.com/aws/aws-cdk/issues/8233) [#1765](https://github.com/aws/jsii/issues/1765) +* **python:** relative import missing for kwargs types ([#1768](https://github.com/aws/jsii/issues/1768)) ([c174ac5](https://github.com/aws/jsii/commit/c174ac5822d9923c904ec38b3f7d0513310ef973)) + ## [1.7.0](https://github.com/aws/jsii/compare/v1.6.0...v1.7.0) (2020-06-18) diff --git a/lerna.json b/lerna.json index 76d233cd0a..0160fd87bd 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "rejectCycles": true } }, - "version": "1.7.0" + "version": "1.8.0" }