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:
Marti Raudsepp
2020-11-25 04:08:47 +02:00
committed by GitHub
parent bd69ad1292
commit 5466117847

View File

@@ -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):