diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-11 01:41:55 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 17:52:23 +0900 |
commit | ecae46027a3e33cf75c2d1eaecaf6f602d149b23 (patch) | |
tree | 02679184db882cad03a0da6e96d0b19298cae10b /sphinx/util/inspect.py | |
parent | 8576e97e34a9b39189cb4e8188407002cdab1a27 (diff) | |
download | sphinx-git-ecae46027a3e33cf75c2d1eaecaf6f602d149b23.tar.gz |
refactor: Update type annotations in sphinx.util.*
Diffstat (limited to 'sphinx/util/inspect.py')
-rw-r--r-- | sphinx/util/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 80cac97d9..60daf3754 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -51,7 +51,7 @@ memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>)', re.IGNORECASE) # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, # 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Python Software # Foundation; All Rights Reserved -def getargspec(func): +def getargspec(func: Callable) -> Any: """Like inspect.getfullargspec but supports bound methods, and wrapped methods.""" warnings.warn('sphinx.ext.inspect.getargspec() is deprecated', |