Get rid of a lot of flake8 errors
This commit is contained in:
1 parent
818577f423
commit
66ad620692
12 files changed
+47
-47
No files matched your search
@@ -39,7 +39,9 @@ def imitate_pydoc(string):
|
||||
string = h.symbols[string]
|
||||
string, _, related = string.partition(' ')
|
||||
|
||||
get_target = lambda s: h.topics.get(s, h.keywords.get(s))
|
||||
def get_target(s):
|
||||
return h.topics.get(s, h.keywords.get(s))
|
||||
|
||||
while isinstance(string, str):
|
||||
string = get_target(string)
|
||||
|
||||
|
||||
Reference in new issue
Block a user