diff options
| author | Mathias Ertl <mati@er.tl> | 2021-03-20 15:26:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 10:26:14 -0400 |
| commit | d95bf3277b893ce64b979ce8da83521aeb80fce0 (patch) | |
| tree | ecdea97ec545e87cab6934a080834ab41994f5bd | |
| parent | a141ebe694497cb649e15bfaeadc02c782f7417e (diff) | |
| download | cryptography-d95bf3277b893ce64b979ce8da83521aeb80fce0.tar.gz | |
make get_extension_for_class a generic function (#5923)
| -rw-r--r-- | src/cryptography/x509/extensions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index d9443106f..296de95d8 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -130,8 +130,8 @@ class Extensions(object): raise ExtensionNotFound("No {} extension was found".format(oid), oid) def get_extension_for_class( - self, extclass: typing.Type[ExtensionType] - ) -> "Extension[ExtensionType]": + self, extclass: typing.Type[ExtensionTypeVar] + ) -> "Extension[ExtensionTypeVar]": if extclass is UnrecognizedExtension: raise TypeError( "UnrecognizedExtension can't be used with " |
