Skip to content

Commit f5b8614

Browse files
committed
support older python 3.+
1 parent ae87d51 commit f5b8614

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dokuwiki.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from collections import OrderedDict
2222
from datetime import datetime, timedelta
2323
from typing import Any, Dict, List, Optional, Union
24+
from typing import OrderedDict as t_OrderedDict
2425
from urllib.parse import quote
2526
from xml.parsers.expat import ExpatError
2627
from xmlrpc.client import ServerProxy, Binary, Fault, Transport, SafeTransport, ProtocolError, DateTime
@@ -476,7 +477,7 @@ class Dataentry:
476477
"""Object that manage `data entries <https://www.dokuwiki.org/plugin:data>`_."""
477478

478479
@staticmethod
479-
def get(content: str, keep_order: bool = False) -> Union[Dict[str, str], OrderedDict[str, str]]:
480+
def get(content: str, keep_order: bool = False) -> Union[Dict[str, str], t_OrderedDict[str, str]]:
480481
"""Get dataentry from *content*. *keep_order* indicates whether to
481482
return an ordered dictionary."""
482483
dataentry: Union[Dict[str, str], OrderedDict[str, str]]

0 commit comments

Comments
 (0)