Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Code clean-up #126

Merged
merged 1 commit into from Apr 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -11,7 +11,6 @@ classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Operating System :: OS Independent
License :: OSI Approved :: BSD License
Expand Down
14 changes: 2 additions & 12 deletions sphinx_automodapi/autodoc_enhancements.py
@@ -1,21 +1,11 @@
"""
Miscellaneous enhancements to help autodoc along.
"""

import inspect
import sys
import types

from sphinx.ext.autodoc import AttributeDocumenter, ModuleDocumenter
from sphinx.util.inspect import isdescriptor
from sphinx.ext.autodoc import AttributeDocumenter

__all__ = []

if sys.version_info[0] == 3:
class_types = (type,)
else:
class_types = (type, types.ClassType)

class_types = (type,)
MethodDescriptorType = type(type.__subclasses__)


Expand Down