We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de6580 commit 6b5a63aCopy full SHA for 6b5a63a
doc/sphinxext/github_link.py
@@ -40,7 +40,7 @@ def _linkcode_resolve(domain, info, package, url_fmt, revision):
40
return
41
42
class_name = info["fullname"].split(".")[0]
43
- if type(class_name) != str:
+ if isinstance(class_name, str):
44
# Python 2 only
45
class_name = class_name.encode("utf-8")
46
module = __import__(info["module"], fromlist=[class_name])
0 commit comments