mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 04:04:25 +08:00
cryptography: Fix 'oid' field hints to ObjectIdentifier (#4780)
The `ExtensionOID` class is simply a namespace for constants, there are no instances of that class.
This commit is contained in:
4
third_party/2and3/cryptography/x509.pyi
vendored
4
third_party/2and3/cryptography/x509.pyi
vendored
@@ -271,13 +271,13 @@ class UniformResourceIdentifier(GeneralName):
|
||||
# X.509 Extensions
|
||||
|
||||
class ExtensionType(metaclass=ABCMeta):
|
||||
oid: ExtensionOID
|
||||
oid: ObjectIdentifier
|
||||
|
||||
_T = TypeVar("_T", bound="ExtensionType")
|
||||
|
||||
class Extension(Generic[_T]):
|
||||
critical: bool
|
||||
oid: ExtensionOID
|
||||
oid: ObjectIdentifier
|
||||
value: _T
|
||||
|
||||
class Extensions(object):
|
||||
|
||||
Reference in New Issue
Block a user