diff --git a/CHANGELOG.md b/CHANGELOG.md index 251b6e4a5..4e00e4956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix inconsistent type annotations as reported by mypy [#1277](https://github.com/FreeOpcUa/opcua-asyncio/pull/1277) - +- Fixed incorrect function signature in Node and it's Sync wrapper + [#1690](https://github.com/FreeOpcUa/opcua-asyncio/pull/1690) + ## [1.0.2] - 2022-04-05 ### Added diff --git a/asyncua/common/node.py b/asyncua/common/node.py index 1fd7fd4eb..bfe2adb4b 100644 --- a/asyncua/common/node.py +++ b/asyncua/common/node.py @@ -227,7 +227,7 @@ async def write_array_dimensions(self, value: int) -> None: v = ua.Variant(value, ua.VariantType.UInt32) await self.write_attribute(ua.AttributeIds.ArrayDimensions, ua.DataValue(v)) - async def read_array_dimensions(self) -> int: + async def read_array_dimensions(self) -> List[int]: """ Read and return ArrayDimensions attribute of node """ diff --git a/asyncua/sync.py b/asyncua/sync.py index 0c5fc6091..5fe7d3040 100644 --- a/asyncua/sync.py +++ b/asyncua/sync.py @@ -739,7 +739,7 @@ def read_data_type(self) -> ua.NodeId: # type: ignore[empty-body] pass @syncmethod - def read_array_dimensions(self) -> int: # type: ignore[empty-body] + def read_array_dimensions(self) -> List[int]: # type: ignore[empty-body] pass @syncmethod