aws-cdk.cx-api 2.157.0__py3-none-any.whl → 2.158.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-cdk.cx-api might be problematic. Click here for more details.

@@ -407,7 +407,22 @@ import jsii
407
407
  import publication
408
408
  import typing_extensions
409
409
 
410
- from typeguard import check_type
410
+ import typeguard
411
+ from importlib.metadata import version as _metadata_package_version
412
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
413
+
414
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
415
+ if TYPEGUARD_MAJOR_VERSION <= 2:
416
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
417
+ else:
418
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
419
+ pass
420
+ else:
421
+ if TYPEGUARD_MAJOR_VERSION == 3:
422
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
423
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
424
+ else:
425
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
411
426
 
412
427
  from ._jsii import *
413
428
 
@@ -11,12 +11,27 @@ import jsii
11
11
  import publication
12
12
  import typing_extensions
13
13
 
14
- from typeguard import check_type
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
15
30
 
16
31
  import aws_cdk.cloud_assembly_schema._jsii
17
32
 
18
33
  __jsii_assembly__ = jsii.JSIIAssembly.load(
19
- "@aws-cdk/cx-api", "2.157.0", __name__[0:-6], "cx-api@2.157.0.jsii.tgz"
34
+ "@aws-cdk/cx-api", "2.158.0", __name__[0:-6], "cx-api@2.158.0.jsii.tgz"
20
35
  )
21
36
 
22
37
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aws-cdk.cx-api
3
- Version: 2.157.0
3
+ Version: 2.158.0
4
4
  Summary: Cloud executable protocol
5
5
  Home-page: https://github.com/aws/aws-cdk
6
6
  Author: Amazon Web Services
@@ -24,9 +24,9 @@ Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  License-File: NOTICE
26
26
  Requires-Dist: aws-cdk.cloud-assembly-schema<37.0.0,>=36.0.5
27
- Requires-Dist: jsii<2.0.0,>=1.102.0
27
+ Requires-Dist: jsii<2.0.0,>=1.103.1
28
28
  Requires-Dist: publication>=0.0.3
29
- Requires-Dist: typeguard~=2.13.3
29
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
30
30
 
31
31
  # Cloud Executable API
32
32
 
@@ -0,0 +1,10 @@
1
+ aws_cdk/cx_api/__init__.py,sha256=F4wSNuELszJtzhIRm8vI1olcVl6zQ65dT15pMdZS-QQ,180710
2
+ aws_cdk/cx_api/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ aws_cdk/cx_api/_jsii/__init__.py,sha256=E0X8YUCVsZtZZIO8fHyRAd6rj-PWBk5F3sby5VRssrY,1434
4
+ aws_cdk/cx_api/_jsii/cx-api@2.158.0.jsii.tgz,sha256=Of8caWsNn56Liqib7BMv4jIFBrNSlykWXJhEXqReVlk,212342
5
+ aws_cdk.cx_api-2.158.0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
+ aws_cdk.cx_api-2.158.0.dist-info/METADATA,sha256=5CdO1zsWI8Fz5jcj0bnMCu_rEax4WWhyv8YBgXsNp5U,13576
7
+ aws_cdk.cx_api-2.158.0.dist-info/NOTICE,sha256=7NBh7G38MUfvNz94ADBTirf0VgJwU48PUCT7jvrNxK4,1078
8
+ aws_cdk.cx_api-2.158.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
+ aws_cdk.cx_api-2.158.0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
+ aws_cdk.cx_api-2.158.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- aws_cdk/cx_api/__init__.py,sha256=iJG7fpIWP9N3MRxBN_TbY864Se4b-H2w7RZj8XbVf10,179742
2
- aws_cdk/cx_api/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- aws_cdk/cx_api/_jsii/__init__.py,sha256=14OCQNAsd6Fc9qrD9-RdGdD48Yx8VSTH5gyaVPZlEXQ,466
4
- aws_cdk/cx_api/_jsii/cx-api@2.157.0.jsii.tgz,sha256=GP2030ZdEPeTUYm6J6bTsgRfD4eKWHu0z4oDVz2JlIo,212214
5
- aws_cdk.cx_api-2.157.0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
- aws_cdk.cx_api-2.157.0.dist-info/METADATA,sha256=gnXR15yiXR0Y1flhHQEpwvAP8aJuoIPsbNlEbYJ0y_U,13569
7
- aws_cdk.cx_api-2.157.0.dist-info/NOTICE,sha256=7NBh7G38MUfvNz94ADBTirf0VgJwU48PUCT7jvrNxK4,1078
8
- aws_cdk.cx_api-2.157.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- aws_cdk.cx_api-2.157.0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
- aws_cdk.cx_api-2.157.0.dist-info/RECORD,,