mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
Style: prefer type[Foo | Bar] over type[Foo] | type[Bar] (#10039)
This commit is contained in:
1 parent
084f555793
commit
2279886964
5 files changed
+45
-43
No files matched your search
@@ -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