`paramiko`: Change dependencies on `types-cryptography`, allow using upstream type hints
Since version 3.4, the cryptography library itself ships with type hints: https://cryptography.io/en/latest/changelog/#v3-4
This is the first step for #5618. Currently, if I use types-paramiko and cryptography, it forces me to use types-cryptography as well. It should be up to the end-user to decide if they want upstream hints or from typeshed.
As discussed in #5618 and #5768, I have replaced it with a dependency on types-paramiko -> cryptography and types-pyOpenSSL -> cryptography.
Ping @srittau?
This needs a bit more infrastructure work in typeshed. Currently, our tests don't install the dependencies from METADATA.toml, meaning that the tests could fail due to changes in cryptography. I will try to work on this soon.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
Fixed in #9459. Thanks @intgr, and sorry that this took so long!
Thanks! Better late than never 😆