Skip to content

Drop dsa_bits reference; rpgp-py 0.19.7 doesn't expose it#1232

Closed
andrewmusselman wants to merge 1 commit into
mainfrom
fix-keys-dsa-bits
Closed

Drop dsa_bits reference; rpgp-py 0.19.7 doesn't expose it#1232
andrewmusselman wants to merge 1 commit into
mainfrom
fix-keys-dsa-bits

Conversation

@andrewmusselman

Copy link
Copy Markdown
Contributor

make check fails pyright on main with reportAttributeAccessIssue for PublicParamsInfo.dsa_bits, added in 9cc1dbb (Restore support for DSA keys). rpgp-py 0.19.7 has no dsa_bits attribute and no equivalent field; for a DSA key, all numeric fields on PublicParamsInfo return None, only kind == dsa identifies it.

DSA keys now raise a clear ValueError instead of AttributeError. RSA and ECC unaffected. Restoring DSA bit-length validation needs upstream work in rpgp-py.

Testing

make check passes

Rebase info

$ git fetch upstream main
From github.com:apache/tooling-trusted-releases
 * branch              main       -> FETCH_HEAD
$ git rebase upstream/main
Current branch fix-keys-dsa-bits is up to date.

`make check` fails pyright on main with reportAttributeAccessIssue for
PublicParamsInfo.dsa_bits, added in 9cc1dbb (Restore support for DSA
keys). rpgp-py 0.19.7 has no dsa_bits attribute and no equivalent
field; for a DSA key, all numeric fields on PublicParamsInfo return
None, only kind == dsa identifies it.

DSA keys now raise a clear ValueError instead of AttributeError. RSA
and ECC unaffected. Restoring DSA bit-length validation needs upstream
work in rpgp-py.
@sbp

sbp commented May 7, 2026

Copy link
Copy Markdown
Contributor

rpgp-py 0.19.7 has no dsa_bits attribute and no equivalent field

No, it does:

    @property
    def dsa_bits(self) -> Optional[int]: ...

I know this because I added it.

@sbp sbp closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants