Skip to content

Commit e47edc3

Browse files
committed
docrep compatibility fixes
1 parent 5aed5f9 commit e47edc3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

funcargparse/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from itertools import chain, groupby
77
from argparse import ArgumentParser, Namespace
88
import argparse
9-
from docrep import DocstringProcessor
9+
import docrep
1010

1111
try:
1212
from cyordereddict import OrderedDict
@@ -26,7 +26,7 @@
2626
__version__ = '0.2.3'
2727

2828

29-
docstrings = DocstringProcessor()
29+
docstrings = docrep.DocstringProcessor()
3030

3131

3232
_on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
@@ -145,8 +145,8 @@ def get_param_doc(doc, param):
145145
The documentation of the given `param`
146146
str
147147
The datatype of the given `param`"""
148-
arg_doc = docrep.keep_params(doc, [param]) or \
149-
docrep.keep_types(doc, [param])
148+
arg_doc = docrep.keep_params(doc, param) or \
149+
docrep.keep_types(doc, param)
150150
dtype = None
151151
if arg_doc:
152152
lines = arg_doc.splitlines()

0 commit comments

Comments
 (0)