Skip to content

Commit

Permalink
docrep compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Sep 22, 2020
1 parent 5aed5f9 commit e47edc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions funcargparse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from itertools import chain, groupby
from argparse import ArgumentParser, Namespace
import argparse
from docrep import DocstringProcessor
import docrep

try:
from cyordereddict import OrderedDict
Expand All @@ -26,7 +26,7 @@
__version__ = '0.2.3'


docstrings = DocstringProcessor()
docstrings = docrep.DocstringProcessor()


_on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
Expand Down Expand Up @@ -145,8 +145,8 @@ def get_param_doc(doc, param):
The documentation of the given `param`
str
The datatype of the given `param`"""
arg_doc = docrep.keep_params(doc, [param]) or \
docrep.keep_types(doc, [param])
arg_doc = docrep.keep_params(doc, param) or \
docrep.keep_types(doc, param)
dtype = None
if arg_doc:
lines = arg_doc.splitlines()
Expand Down

0 comments on commit e47edc3

Please sign in to comment.