You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The presence of def property makes the annotation @property resolve to something else.
File "/tmp/python/venv/lib64/python3.7/site-packages/aws_cdk/aws_accessanalyzer/__init__.py", line 40, in <module>
class CfnAnalyzer(aws_cdk.core.CfnResource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-accessanalyzer.CfnAnalyzer"):
File "/tmp/python/venv/lib64/python3.7/site-packages/aws_cdk/aws_accessanalyzer/__init__.py", line 196, in CfnAnalyzer
@jsii.data_type(jsii_type="@aws-cdk/aws-accessanalyzer.CfnAnalyzer.FilterProperty", jsii_struct_bases=[], name_mapping={'property': 'property', 'contains': 'contains', 'eq': 'eq', 'exists': 'exists', 'neq': 'neq'})
File "/tmp/python/venv/lib64/python3.7/site-packages/aws_cdk/aws_accessanalyzer/__init__.py", line 227, in FilterProperty
def contains(self) -> typing.Optional[typing.List[str]]:
TypeError: 'property' object is not callable
The text was updated successfully, but these errors were encountered:
When a member is named `property`, it would start taking precedence over
`builtings.property` when resolving the `@property` decorator. Fixed
this by manually namespacing all `@<decorator>`, so local scope
declarations cannot possibly shadow decorators.
Fixes#1113
When a member is named `property`, it would start taking precedence over
`builtings.property` when resolving the `@property` decorator. Fixed
this by manually namespacing all `@<decorator>`, so local scope
declarations cannot possibly shadow decorators.
Fixes#1113
When a member is named `property`, it would start taking precedence over
`builtings.property` when resolving the `@property` decorator. Fixed
this by manually namespacing all `@<decorator>`, so local scope
declarations cannot possibly shadow decorators.
Fixes#1113
🐛 Bug Report
This is high priority because the documentation build fails while this issue is present.
@aws-cdk/aws-accessanalyzer is a new package from the CFN spec... and it has a struct CfnAnalyzer.FilterProperty with a property called property...
Since properties are generated in Python as:
The presence of
def property
makes the annotation@property
resolve to something else.The text was updated successfully, but these errors were encountered: