Looks like `spdxId` does not have cardinality information
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 5
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
When use Element.spdxId in Python code, the IDE/linter expects spdxId to be either str or None.
But as cardinality of spdxId (in Element) is 1..1, it should not be the case. It should expect only str.
Not sure if it is anything to do with the fact that we treat spdxId as an alias of _id/@id (so the generation code may differ from other properties).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the generated Element model and the generation path for spdxId, especially the handling of its _id/@id alias. Check how the 1..1 cardinality becomes the Python type annotation, then verify that IDE or linter inference treats Element.spdxId as str rather than str or None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100