Skip to content

Downstream type hints? #52

Closed
Closed

Description

@woodruffw

First of all, thanks for this fantastic library!

I'm currently working on using cyclonedx-python-lib to generate SBOMs within pip-audit.

Our codebase is fully typechecked (via MyPy), and it looks like this library is too! But we can't currently consume your type hints, since the cyclonedx package doesn't include a py.typed file per PEP 561.

Is there any objection to including that file, so that downstream users can typecheck their API use? If not, I can go ahead and create a PR -- it should be just a 2 or 3 line change.

Activity

  1. added
    enhancement
    on Nov 6, 2021
  2. linked a pull request that will close this issuetyping & PEP 561 #59on Nov 9, 2021
  3. jkowalleck commented on Nov 9, 2021

    @jkowalleck
    Member

    thanks you very much for the hint, @woodruffw 👍
    we are currently working on this issue.

  4. woodruffw commented on Nov 9, 2021

    @woodruffw
    ContributorAuthor

    Awesome, thanks a ton! Let me know if I can help with testing or anything else.

  5. pinned this issue on Nov 10, 2021
  6. jkowalleck commented on Nov 10, 2021

    @jkowalleck
    Member

    @woodruffw the release v0.11.0 included PEP 561 compatibility.

    Could you see if it suites your needs?

  7. unpinned this issue on Nov 10, 2021
  8. woodruffw commented on Nov 10, 2021

    @woodruffw
    ContributorAuthor

    Thanks! I'll test them now.

  9. woodruffw commented on Nov 10, 2021

    @woodruffw
    ContributorAuthor

    Looks like the type hints are working! Thanks a ton for adding them so quickly. The only outstanding issues preventing me from using them are in #61.

  10. madpah commented on Nov 10, 2021

    @madpah
    Collaborator

    Great news @woodruffw - #61 is merged now and building - point release expected shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions