Skip to content

Commit db042fe

Browse files
authored
DOC: Fix port_property import. Also bump pre-release pkg version. (#566)
1 parent 9f8bc85 commit db042fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-edb-core"
8-
version = "0.2.0.dev4"
8+
version = "0.2.0.dev5"
99
description = "A python wrapper for Ansys Edb service"
1010
readme = "README.rst"
1111
requires-python = ">=3.8"

src/ansys/edb/core/definition/io_component_property.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ansys.api.edb.v1.io_component_property_pb2_grpc import IOComponentPropertyServiceStub
1111
import google.protobuf.empty_pb2 as empty_pb2
1212

13-
from ansys.edb.core.definition import component_property, solder_ball_property
13+
from ansys.edb.core.definition import component_property, port_property, solder_ball_property
1414
from ansys.edb.core.inner import messages
1515
from ansys.edb.core.session import StubAccessor, StubType
1616

@@ -53,7 +53,9 @@ def port_property(self) -> PortProperty:
5353
5454
A copy is returned. Use the setter for any modifications to be reflected.
5555
"""
56-
return PortProperty(self.__stub.GetPortProperty(messages.edb_obj_message(self)))
56+
return port_property.PortProperty(
57+
self.__stub.GetPortProperty(messages.edb_obj_message(self))
58+
)
5759

5860
@port_property.setter
5961
def port_property(self, value: PortProperty):

0 commit comments

Comments
 (0)