ansys / ansys/pyedb-core

`ICComponentProperty.clone` returns a `ComponentProperty` that must be explicitly cast

Open
#753 0 comments 0 reactions 1 assignee Claimed by @ansahershen View on GitHub
bug
Dominant language
Python
Stars
7
Forks
4
PR merge metrics
No merged PRs in 30d

Description

### 🔍 Before submitting the issue

- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment

### 🐞 Description of the bug

Calling `ICComponentProperty.clone` or `IOComponentProperty.clone` returns a base-class instance that must be explicitly cast to the appropriate type.

### 📝 Steps to reproduce

Acquire an ICComponentProperty or IOComponentProperty (here, from a `Layout` containing an IC type component "U1") and attempt to retrieve a property specific to the concrete class:

```
component = ComponentGroup.find(layout, "U1")
component_property = component.component_property.clone()
# component_property = ICComponentProperty(component_property.msg)
die_property = component_property.die_property # fails unless the explicit cast above is uncommented
```

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

2026.1

`ansys-edb-core==0.3.1`

### 🐍 Which Python version are you using?

3.13

### 📦 Installed packages

```shell
ansys-api-edb==0.3.0
-e file:///D:/git/Ansys/pyedb-core
ansys-tools-common==0.5.0
cachetools==7.1.1
certifi==2026.4.22
cfgv==3.5.0
charset-normalizer==3.4.7
click==8.3.3
colorama==0.4.6
coverage==7.14.0
distlib==0.4.0
filelock==3.29.0
grpcio==1.80.0
identify==2.6.19
idna==3.14
iniconfig==2.3.0
nodeenv==1.10.0
packaging==26.2
platformdirs==4.9.6
pluggy==1.6.0
pre-commit==4.6.0
protobuf==6.33.6
pygments==2.20.0
pyproject-api==1.10.0
pytest==8.4.1
pytest-cov==6.2.1
pytest-mock==3.14.1
python-discovery==1.3.0
pyyaml==6.0.3
requests==2.33.1
scooby==0.11.2
tomli-w==1.2.0
tox==4.53.1
typing-extensions==4.15.0
urllib3==2.7.0
virtualenv==21.3.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.