eta_nexus.util.type_annotations module
- class eta_nexus.util.type_annotations.N
Contravariancy allows N to be a supertype of Node. This is necessary for mypy in some cases.
alias of TypeVar(‘N’, bound=
Node)
- eta_nexus.util.type_annotations.PrivateKey = cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKey | cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PrivateKey | cryptography.hazmat.primitives.asymmetric.ed448.Ed448PrivateKey | cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey | cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey | cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey | cryptography.hazmat.primitives.asymmetric.x25519.X25519PrivateKey | cryptography.hazmat.primitives.asymmetric.x448.X448PrivateKey
Generic Template for Nodes, N has to be a subclass of Node