cdklabs.appsync-utils 0.0.509__py3-none-any.whl → 0.0.511__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.
@@ -618,7 +618,22 @@ import jsii
618
618
  import publication
619
619
  import typing_extensions
620
620
 
621
- from typeguard import check_type
621
+ import typeguard
622
+ from importlib.metadata import version as _metadata_package_version
623
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
624
+
625
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
626
+ if TYPEGUARD_MAJOR_VERSION <= 2:
627
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
628
+ else:
629
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
630
+ pass
631
+ else:
632
+ if TYPEGUARD_MAJOR_VERSION == 3:
633
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
634
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
635
+ else:
636
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
622
637
 
623
638
  from ._jsii import *
624
639
 
@@ -11,16 +11,31 @@ 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._jsii
17
32
  import constructs._jsii
18
33
 
19
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
35
  "awscdk-appsync-utils",
21
- "0.0.509",
36
+ "0.0.511",
22
37
  __name__[0:-6],
23
- "awscdk-appsync-utils@0.0.509.jsii.tgz",
38
+ "awscdk-appsync-utils@0.0.511.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdklabs.appsync-utils
3
- Version: 0.0.509
3
+ Version: 0.0.511
4
4
  Summary: Utilities for creating appsync apis using aws-cdk
5
5
  Home-page: https://github.com/cdklabs/awscdk-appsync-utils.git
6
6
  Author: Mitchell Valine<mitchellvaline@yahoo.com>
@@ -23,9 +23,9 @@ License-File: LICENSE
23
23
  License-File: NOTICE
24
24
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.110.0
25
25
  Requires-Dist: constructs<11.0.0,>=10.0.5
26
- Requires-Dist: jsii<2.0.0,>=1.102.0
26
+ Requires-Dist: jsii<2.0.0,>=1.103.0
27
27
  Requires-Dist: publication>=0.0.3
28
- Requires-Dist: typeguard~=2.13.3
28
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
29
29
 
30
30
  # AWS CDK AppSync Utilities
31
31
 
@@ -0,0 +1,10 @@
1
+ awscdk/appsync_utils/__init__.py,sha256=0dsCWpk-2gKmNGBp2k-_baO_wfoxpBILafmlAFA0Csc,164047
2
+ awscdk/appsync_utils/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ awscdk/appsync_utils/_jsii/__init__.py,sha256=uTxQwPGXXPbQ4uinC1Bc0Bo6bEYf5VK69jbcnAZ3_lg,1468
4
+ awscdk/appsync_utils/_jsii/awscdk-appsync-utils@0.0.511.jsii.tgz,sha256=feAAvlHCDqtykxOgPPCj21g1KTJCHSNkw2P_kmd5AMY,96433
5
+ cdklabs.appsync_utils-0.0.511.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdklabs.appsync_utils-0.0.511.dist-info/METADATA,sha256=myZrG4FwBZfCLep2f39gptTZWKV5mY4F5ixDeTP_AhE,20722
7
+ cdklabs.appsync_utils-0.0.511.dist-info/NOTICE,sha256=1CkO1kwu3Q_OHYTj-d-yiBJA_lNN73a4zSntavaD4oc,67
8
+ cdklabs.appsync_utils-0.0.511.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
+ cdklabs.appsync_utils-0.0.511.dist-info/top_level.txt,sha256=Dkt6qQSQppDUlESKVaCu9svo6_tkERF2FfSQsS1QcuY,7
10
+ cdklabs.appsync_utils-0.0.511.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- awscdk/appsync_utils/__init__.py,sha256=g0WrrkB9el05RDRJY_7R2zYz1SvGx3k5IrZ4fg2pmlY,163079
2
- awscdk/appsync_utils/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- awscdk/appsync_utils/_jsii/__init__.py,sha256=PNNMCyiGcLmBlde2Y-mbpgrRtZfWaKkVmJmO5s7mVpU,500
4
- awscdk/appsync_utils/_jsii/awscdk-appsync-utils@0.0.509.jsii.tgz,sha256=sPapm2S53qeu5JozN_JIznhvHMj-aB0cqAgkPzMCREc,96435
5
- cdklabs.appsync_utils-0.0.509.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdklabs.appsync_utils-0.0.509.dist-info/METADATA,sha256=CqToONkpnOqu49spj7IpUOQYZM45z3Bn_JpK7tZa0bY,20715
7
- cdklabs.appsync_utils-0.0.509.dist-info/NOTICE,sha256=1CkO1kwu3Q_OHYTj-d-yiBJA_lNN73a4zSntavaD4oc,67
8
- cdklabs.appsync_utils-0.0.509.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- cdklabs.appsync_utils-0.0.509.dist-info/top_level.txt,sha256=Dkt6qQSQppDUlESKVaCu9svo6_tkERF2FfSQsS1QcuY,7
10
- cdklabs.appsync_utils-0.0.509.dist-info/RECORD,,