cdk-certbot-dns-route53 2.4.235__py3-none-any.whl → 2.4.237__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.
@@ -134,7 +134,22 @@ import jsii
134
134
  import publication
135
135
  import typing_extensions
136
136
 
137
- from typeguard import check_type
137
+ import typeguard
138
+ from importlib.metadata import version as _metadata_package_version
139
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
140
+
141
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
142
+ if TYPEGUARD_MAJOR_VERSION <= 2:
143
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
144
+ else:
145
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
146
+ pass
147
+ else:
148
+ if TYPEGUARD_MAJOR_VERSION == 3:
149
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
150
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
151
+ else:
152
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
138
153
 
139
154
  from ._jsii import *
140
155
 
@@ -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 aws_cdk.aws_lambda_python_alpha._jsii
@@ -19,9 +34,9 @@ import constructs._jsii
19
34
 
20
35
  __jsii_assembly__ = jsii.JSIIAssembly.load(
21
36
  "cdk-certbot-dns-route53",
22
- "2.4.235",
37
+ "2.4.237",
23
38
  __name__[0:-6],
24
- "cdk-certbot-dns-route53@2.4.235.jsii.tgz",
39
+ "cdk-certbot-dns-route53@2.4.237.jsii.tgz",
25
40
  )
26
41
 
27
42
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-certbot-dns-route53
3
- Version: 2.4.235
3
+ Version: 2.4.237
4
4
  Summary: Create Cron Job Via Lambda, to update certificate and put it to S3 Bucket.
5
5
  Home-page: https://github.com/neilkuan/cdk-certbot-dns-route53.git
6
6
  Author: Neil Kuan<guan840912@gmail.com>
@@ -23,9 +23,9 @@ License-File: LICENSE
23
23
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.126.0
24
24
  Requires-Dist: aws-cdk.aws-lambda-python-alpha==2.115.0.a0
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
  [![NPM version](https://badge.fury.io/js/cdk-certbot-dns-route53.svg)](https://badge.fury.io/js/cdk-certbot-dns-route53)
31
31
  [![PyPI version](https://badge.fury.io/py/cdk-certbot-dns-route53.svg)](https://badge.fury.io/py/cdk-certbot-dns-route53)
@@ -0,0 +1,9 @@
1
+ cdk_certbot_dns_route53/__init__.py,sha256=rUTtNQOHnYkqTLAxg-rDLRMaH9kkUuBRaKGOCaIGPfQ,37147
2
+ cdk_certbot_dns_route53/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk_certbot_dns_route53/_jsii/__init__.py,sha256=JAsTXBoqyyOUeMgcBHx6XhvsZyDpUH-IFec_ztgyBAE,1519
4
+ cdk_certbot_dns_route53/_jsii/cdk-certbot-dns-route53@2.4.237.jsii.tgz,sha256=ApsDc1d8mgpnpci-JrWZTcdQpUt5KxgnFTo0Jh6vhzs,34440
5
+ cdk_certbot_dns_route53-2.4.237.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_certbot_dns_route53-2.4.237.dist-info/METADATA,sha256=BUAVFL5p49H_FSDK4eZIOKCNwPQOCmei_tdciSUvCMU,5313
7
+ cdk_certbot_dns_route53-2.4.237.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ cdk_certbot_dns_route53-2.4.237.dist-info/top_level.txt,sha256=U0JpwTks6iAPiwrk3HlaARaUjb0hsV_Ei2dmET_TfCY,24
9
+ cdk_certbot_dns_route53-2.4.237.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- cdk_certbot_dns_route53/__init__.py,sha256=WlXobZZVLbUGHZA3DvAHHAZcTMLceWqfdKXRexwVG28,36179
2
- cdk_certbot_dns_route53/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk_certbot_dns_route53/_jsii/__init__.py,sha256=aq2qMzbvPUwkDV7sh6w-lMgP9eMwG0JKUacnusJHoDc,551
4
- cdk_certbot_dns_route53/_jsii/cdk-certbot-dns-route53@2.4.235.jsii.tgz,sha256=gwDMS8Q7EIRNqsT5bhlW7-JGd6vnaE1XAOCthjLhP_4,34440
5
- cdk_certbot_dns_route53-2.4.235.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk_certbot_dns_route53-2.4.235.dist-info/METADATA,sha256=JdzuAP9jmPh8IZMiHpnJMxS9o8j3SYxXk8_otK4pNpE,5306
7
- cdk_certbot_dns_route53-2.4.235.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- cdk_certbot_dns_route53-2.4.235.dist-info/top_level.txt,sha256=U0JpwTks6iAPiwrk3HlaARaUjb0hsV_Ei2dmET_TfCY,24
9
- cdk_certbot_dns_route53-2.4.235.dist-info/RECORD,,