mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Style: prefer type[Foo | Bar] over type[Foo] | type[Bar] (#10039)
This commit is contained in:
@@ -15,7 +15,7 @@ from .rsa_backend import RSAKey as BackendRSAKey
|
||||
# then falling back on other imports
|
||||
# these are all the potential options
|
||||
AESKey: type[CryptographyAESKey] | None
|
||||
HMACKey: type[CryptographyHMACKey] | type[NativeHMACKey]
|
||||
RSAKey: type[CryptographyRSAKey] | type[BackendRSAKey] | None
|
||||
ECKey: type[CryptographyECKey] | type[ECDSAECKey]
|
||||
HMACKey: type[CryptographyHMACKey | NativeHMACKey]
|
||||
RSAKey: type[CryptographyRSAKey | BackendRSAKey] | None
|
||||
ECKey: type[CryptographyECKey | ECDSAECKey]
|
||||
get_random_bytes: Callable[[int], bytes]
|
||||
|
||||
Reference in New Issue
Block a user