Skip to content

Commit cac4f6b

Browse files
committed
More direct compat types
1 parent ade1913 commit cac4f6b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
def strptime(text, dateFormat): ...
1+
from datetime import datetime
2+
3+
strptime = datetime.strptime

stubs/pyasn1/pyasn1/compat/string.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
def partition(string, sep): ...
1+
# Same as string.partition(sep)
2+
def partition(string: str, sep: str) -> tuple[str, str, str]: ...

0 commit comments

Comments
 (0)