cdk8s-awscdk-resolver 0.0.154__py3-none-any.whl → 0.0.156__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.
@@ -161,7 +161,22 @@ import jsii
161
161
  import publication
162
162
  import typing_extensions
163
163
 
164
- from typeguard import check_type
164
+ import typeguard
165
+ from importlib.metadata import version as _metadata_package_version
166
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
167
+
168
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
169
+ if TYPEGUARD_MAJOR_VERSION <= 2:
170
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
171
+ else:
172
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
173
+ pass
174
+ else:
175
+ if TYPEGUARD_MAJOR_VERSION == 3:
176
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
177
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
178
+ else:
179
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
165
180
 
166
181
  from ._jsii import *
167
182
 
@@ -11,7 +11,22 @@ 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 cdk8s._jsii
@@ -19,9 +34,9 @@ import constructs._jsii
19
34
 
20
35
  __jsii_assembly__ = jsii.JSIIAssembly.load(
21
36
  "@cdk8s/awscdk-resolver",
22
- "0.0.154",
37
+ "0.0.156",
23
38
  __name__[0:-6],
24
- "awscdk-resolver@0.0.154.jsii.tgz",
39
+ "awscdk-resolver@0.0.156.jsii.tgz",
25
40
  )
26
41
 
27
42
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk8s-awscdk-resolver
3
- Version: 0.0.154
3
+ Version: 0.0.156
4
4
  Summary: @cdk8s/awscdk-resolver
5
5
  Home-page: https://github.com/cdk8s-team/cdk8s-awscdk-resolver.git
6
6
  Author: Amazon Web Services
@@ -23,9 +23,9 @@ License-File: LICENSE
23
23
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.106.1
24
24
  Requires-Dist: cdk8s<3.0.0,>=2.68.91
25
25
  Requires-Dist: constructs<11.0.0,>=10.3.0
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 Resolver
31
31
 
@@ -0,0 +1,9 @@
1
+ cdk8s_awscdk_resolver/__init__.py,sha256=PEISJrLG79Te0eJdsZkWOXJvX7rpD7wAhklLLqEdwsM,7705
2
+ cdk8s_awscdk_resolver/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk8s_awscdk_resolver/_jsii/__init__.py,sha256=nDinaZrKtpcEbafpOxXJjHsdPDJQKN8f3mDxBgxrB4A,1484
4
+ cdk8s_awscdk_resolver/_jsii/awscdk-resolver@0.0.156.jsii.tgz,sha256=hym5A3g14zXKTnbY8c3Mk_wbEX77JY-Eh-nMU7HzpBs,942883
5
+ cdk8s_awscdk_resolver-0.0.156.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk8s_awscdk_resolver-0.0.156.dist-info/METADATA,sha256=VxAivvfvFtlufD1amiOyFguaRXh5nyMs1WZ9hjK1MKY,6435
7
+ cdk8s_awscdk_resolver-0.0.156.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ cdk8s_awscdk_resolver-0.0.156.dist-info/top_level.txt,sha256=LGSrmEbqdwZMHUHFITZ6GZ8ZvJe0mzRvtI6DsDfo6Po,22
9
+ cdk8s_awscdk_resolver-0.0.156.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- cdk8s_awscdk_resolver/__init__.py,sha256=u5IvarZz5F_oZx3EtzBFpdrxacPWAUZn00eHr-9yo_U,6737
2
- cdk8s_awscdk_resolver/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk8s_awscdk_resolver/_jsii/__init__.py,sha256=Thn-W8CBlsicY1XsYa0AVpDd4Bau8pHpuhvzYoi7dxc,516
4
- cdk8s_awscdk_resolver/_jsii/awscdk-resolver@0.0.154.jsii.tgz,sha256=ajABrytyxT7lSAbSEMYRwB3Bbq8-2cyHpm8Cb6qucrE,944584
5
- cdk8s_awscdk_resolver-0.0.154.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk8s_awscdk_resolver-0.0.154.dist-info/METADATA,sha256=6mpysreeVtDtBIMz6eddXJybNDk3ZfnmpHv0WdNkr4g,6428
7
- cdk8s_awscdk_resolver-0.0.154.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- cdk8s_awscdk_resolver-0.0.154.dist-info/top_level.txt,sha256=LGSrmEbqdwZMHUHFITZ6GZ8ZvJe0mzRvtI6DsDfo6Po,22
9
- cdk8s_awscdk_resolver-0.0.154.dist-info/RECORD,,