From 5466117847d225ae6dc9c740341ef8be835f8ea9 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Wed, 25 Nov 2020 04:08:47 +0200 Subject: [PATCH] cryptography: Fix 'oid' field hints to ObjectIdentifier (#4780) The `ExtensionOID` class is simply a namespace for constants, there are no instances of that class. --- third_party/2and3/cryptography/x509.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2and3/cryptography/x509.pyi b/third_party/2and3/cryptography/x509.pyi index 55333f8f6..4ab9b2b7e 100644 --- a/third_party/2and3/cryptography/x509.pyi +++ b/third_party/2and3/cryptography/x509.pyi @@ -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):