projen-modules 4.6.0__tar.gz → 5.0.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen_modules
3
- Version: 4.6.0
3
+ Version: 5.0.0
4
4
  Summary: A collection of projen modules
5
5
  Home-page: https://github.com/daveshepherd/projen-modules.git
6
6
  Author: Dave Shepherd<dave.shepherd@endor.me.uk>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "projen_modules",
8
- "version": "4.6.0",
8
+ "version": "5.0.0",
9
9
  "description": "A collection of projen modules",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/daveshepherd/projen-modules.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "projen_modules._jsii": [
29
- "projen-modules@4.6.0.jsii.tgz"
29
+ "projen-modules@5.0.0.jsii.tgz"
30
30
  ],
31
31
  "projen_modules": [
32
32
  "py.typed"
@@ -4346,58 +4346,6 @@ class DeploymentEnvironment:
4346
4346
  )
4347
4347
 
4348
4348
 
4349
- @jsii.interface(jsii_type="projen-modules.ISectionOptions")
4350
- class ISectionOptions(typing_extensions.Protocol):
4351
- @builtins.property
4352
- @jsii.member(jsii_name="body")
4353
- def body(self) -> builtins.str:
4354
- ...
4355
-
4356
- @body.setter
4357
- def body(self, value: builtins.str) -> None:
4358
- ...
4359
-
4360
- @builtins.property
4361
- @jsii.member(jsii_name="title")
4362
- def title(self) -> builtins.str:
4363
- ...
4364
-
4365
- @title.setter
4366
- def title(self, value: builtins.str) -> None:
4367
- ...
4368
-
4369
-
4370
- class _ISectionOptionsProxy:
4371
- __jsii_type__: typing.ClassVar[str] = "projen-modules.ISectionOptions"
4372
-
4373
- @builtins.property
4374
- @jsii.member(jsii_name="body")
4375
- def body(self) -> builtins.str:
4376
- return typing.cast(builtins.str, jsii.get(self, "body"))
4377
-
4378
- @body.setter
4379
- def body(self, value: builtins.str) -> None:
4380
- if __debug__:
4381
- type_hints = cached_type_hints(_typecheckingstub__23029d204b6d2d942365c98cdf1ae37497306087c242e282bc4760de997efd13)
4382
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4383
- jsii.set(self, "body", value) # pyright: ignore[reportArgumentType]
4384
-
4385
- @builtins.property
4386
- @jsii.member(jsii_name="title")
4387
- def title(self) -> builtins.str:
4388
- return typing.cast(builtins.str, jsii.get(self, "title"))
4389
-
4390
- @title.setter
4391
- def title(self, value: builtins.str) -> None:
4392
- if __debug__:
4393
- type_hints = cached_type_hints(_typecheckingstub__ae35859c3728359fce2cd5f37ce86da906192904c18d529b6c42fb7cd911ad9f)
4394
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4395
- jsii.set(self, "title", value) # pyright: ignore[reportArgumentType]
4396
-
4397
- # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
4398
- typing.cast(typing.Any, ISectionOptions).__jsii_proxy_class__ = lambda : _ISectionOptionsProxy
4399
-
4400
-
4401
4349
  class JsiiProject(
4402
4350
  _projen_cdk_04054675.JsiiProject,
4403
4351
  metaclass=jsii.JSIIMeta,
@@ -13405,13 +13353,13 @@ class ReadmeOrder(metaclass=jsii.JSIIMeta, jsii_type="projen-modules.ReadmeOrder
13405
13353
 
13406
13354
 
13407
13355
  class Section(metaclass=jsii.JSIIMeta, jsii_type="projen-modules.Section"):
13408
- def __init__(self, options: "ISectionOptions") -> None:
13356
+ def __init__(self, *, body: builtins.str, title: builtins.str) -> None:
13409
13357
  '''
13410
- :param options: -
13358
+ :param body: The markdown content of the section.
13359
+ :param title: The heading of the section.
13411
13360
  '''
13412
- if __debug__:
13413
- type_hints = cached_type_hints(_typecheckingstub__1e42be693dde8cd80a4e05381ff22f05cb4318ab11dab8a9118ec46f997b6b78)
13414
- check_type(argname="argument options", value=options, expected_type=type_hints["options"])
13361
+ options = SectionOptions(body=body, title=title)
13362
+
13415
13363
  jsii.create(self.__class__, self, [options])
13416
13364
 
13417
13365
  @jsii.member(jsii_name="synth")
@@ -13420,8 +13368,54 @@ class Section(metaclass=jsii.JSIIMeta, jsii_type="projen-modules.Section"):
13420
13368
 
13421
13369
  @builtins.property
13422
13370
  @jsii.member(jsii_name="options")
13423
- def options(self) -> "ISectionOptions":
13424
- return typing.cast("ISectionOptions", jsii.get(self, "options"))
13371
+ def options(self) -> "SectionOptions":
13372
+ return typing.cast("SectionOptions", jsii.get(self, "options"))
13373
+
13374
+
13375
+ @jsii.data_type(
13376
+ jsii_type="projen-modules.SectionOptions",
13377
+ jsii_struct_bases=[],
13378
+ name_mapping={"body": "body", "title": "title"},
13379
+ )
13380
+ class SectionOptions:
13381
+ def __init__(self, *, body: builtins.str, title: builtins.str) -> None:
13382
+ '''
13383
+ :param body: The markdown content of the section.
13384
+ :param title: The heading of the section.
13385
+ '''
13386
+ if __debug__:
13387
+ type_hints = cached_type_hints(_typecheckingstub__189de405c75e2dc0772231e80419d0dcdd3f491cfd936c5c9ed4238c134a397a)
13388
+ check_type(argname="argument body", value=body, expected_type=type_hints["body"])
13389
+ check_type(argname="argument title", value=title, expected_type=type_hints["title"])
13390
+ self._values: typing.Dict[builtins.str, typing.Any] = {
13391
+ "body": body,
13392
+ "title": title,
13393
+ }
13394
+
13395
+ @builtins.property
13396
+ def body(self) -> builtins.str:
13397
+ '''The markdown content of the section.'''
13398
+ result = self._values.get("body")
13399
+ assert result is not None, "Required property 'body' is missing"
13400
+ return typing.cast(builtins.str, result)
13401
+
13402
+ @builtins.property
13403
+ def title(self) -> builtins.str:
13404
+ '''The heading of the section.'''
13405
+ result = self._values.get("title")
13406
+ assert result is not None, "Required property 'title' is missing"
13407
+ return typing.cast(builtins.str, result)
13408
+
13409
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
13410
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
13411
+
13412
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
13413
+ return not (rhs == self)
13414
+
13415
+ def __repr__(self) -> str:
13416
+ return "SectionOptions(%s)" % ", ".join(
13417
+ k + "=" + repr(v) for k, v in self._values.items()
13418
+ )
13425
13419
 
13426
13420
 
13427
13421
  __all__ = [
@@ -13429,7 +13423,6 @@ __all__ = [
13429
13423
  "CdkTypeScriptApp",
13430
13424
  "CdkTypeScriptAppOptions",
13431
13425
  "DeploymentEnvironment",
13432
- "ISectionOptions",
13433
13426
  "JsiiProject",
13434
13427
  "JsiiProjectOptions",
13435
13428
  "NpmPackage",
@@ -13440,6 +13433,7 @@ __all__ = [
13440
13433
  "ReadmeOptions",
13441
13434
  "ReadmeOrder",
13442
13435
  "Section",
13436
+ "SectionOptions",
13443
13437
  ]
13444
13438
 
13445
13439
  publication.publish()
@@ -13654,18 +13648,6 @@ def _typecheckingstub__f5257b3c401aa630c66c9d760ce443a2d4d1537904e174ec2032497d8
13654
13648
  """Type checking stubs"""
13655
13649
  pass
13656
13650
 
13657
- def _typecheckingstub__23029d204b6d2d942365c98cdf1ae37497306087c242e282bc4760de997efd13(
13658
- value: builtins.str,
13659
- ) -> None:
13660
- """Type checking stubs"""
13661
- pass
13662
-
13663
- def _typecheckingstub__ae35859c3728359fce2cd5f37ce86da906192904c18d529b6c42fb7cd911ad9f(
13664
- value: builtins.str,
13665
- ) -> None:
13666
- """Type checking stubs"""
13667
- pass
13668
-
13669
13651
  def _typecheckingstub__a6f448692015be891a4fa1b5c76f220188ba4be73e94a65360a4338352b1ea99(
13670
13652
  value: Readme,
13671
13653
  ) -> None:
@@ -14146,11 +14128,10 @@ def _typecheckingstub__96a11fa5d843f4f5d45e2690ef6a6b6e0851eb4e74c4330cfe550d6b6
14146
14128
  """Type checking stubs"""
14147
14129
  pass
14148
14130
 
14149
- def _typecheckingstub__1e42be693dde8cd80a4e05381ff22f05cb4318ab11dab8a9118ec46f997b6b78(
14150
- options: ISectionOptions,
14131
+ def _typecheckingstub__189de405c75e2dc0772231e80419d0dcdd3f491cfd936c5c9ed4238c134a397a(
14132
+ *,
14133
+ body: builtins.str,
14134
+ title: builtins.str,
14151
14135
  ) -> None:
14152
14136
  """Type checking stubs"""
14153
14137
  pass
14154
-
14155
- for cls in [ISectionOptions]:
14156
- typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
@@ -18,7 +18,7 @@ import constructs._jsii
18
18
  import projen._jsii
19
19
 
20
20
  __jsii_assembly__ = jsii.JSIIAssembly.load(
21
- "projen-modules", "4.6.0", __name__[0:-6], "projen-modules@4.6.0.jsii.tgz"
21
+ "projen-modules", "5.0.0", __name__[0:-6], "projen-modules@5.0.0.jsii.tgz"
22
22
  )
23
23
 
24
24
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen_modules
3
- Version: 4.6.0
3
+ Version: 5.0.0
4
4
  Summary: A collection of projen modules
5
5
  Home-page: https://github.com/daveshepherd/projen-modules.git
6
6
  Author: Dave Shepherd<dave.shepherd@endor.me.uk>
@@ -11,4 +11,4 @@ src/projen_modules.egg-info/dependency_links.txt
11
11
  src/projen_modules.egg-info/requires.txt
12
12
  src/projen_modules.egg-info/top_level.txt
13
13
  src/projen_modules/_jsii/__init__.py
14
- src/projen_modules/_jsii/projen-modules@4.6.0.jsii.tgz
14
+ src/projen_modules/_jsii/projen-modules@5.0.0.jsii.tgz
File without changes
File without changes
File without changes