summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-02-02 14:14:00 +0100
committerMatěj Cepl <mcepl@cepl.eu>2023-02-02 14:14:00 +0100
commit827ce39e9f722dc42cb966e5cbbee603c48f2249 (patch)
tree23f9782b120e0478d94f6dbad2c6bba4c0e566b1
parent03ee6d7b4675907341433dafb152dd6eb433ab64 (diff)
downloadm2crypto-827ce39e9f722dc42cb966e5cbbee603c48f2249.tar.gz
Corect typehint for the return value of ASN1.ASN1_TIME.get_datetime.
Fixes #308
-rw-r--r--src/M2Crypto/ASN1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/M2Crypto/ASN1.py b/src/M2Crypto/ASN1.py
index 37fd7a0..3bd85de 100644
--- a/src/M2Crypto/ASN1.py
+++ b/src/M2Crypto/ASN1.py
@@ -218,7 +218,7 @@ class ASN1_TIME(object):
return m2.asn1_time_set(self.asn1_time, time)
def get_datetime(self):
- # type: () -> ASN1_TIME
+ # type: () -> datetime.datetime
date = str(self)
timezone = None