From b7b1b54afb7c91d65a73f480f6c78218faed9fce Mon Sep 17 00:00:00 2001 From: Chris Lenk Date: Thu, 18 Feb 2021 23:39:24 -0500 Subject: [PATCH] Remove 'six' from config --- .isort.cfg | 1 - docs/conf.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index e409e00..5e5af7f 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -10,7 +10,6 @@ known_third_party = pytz, requests, simplejson, - six, sphinx, stix2patterns, taxii2client, diff --git a/docs/conf.py b/docs/conf.py index 9723e39..5d12af3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,7 +4,6 @@ import os import re import sys -from six import class_types from sphinx.ext.autodoc import ClassDocumenter from stix2.base import _STIXBase @@ -107,7 +106,7 @@ class STIXPropertyDocumenter(ClassDocumenter): @classmethod def can_document_member(cls, member, membername, isattr, parent): - return isinstance(member, class_types) and \ + return isinstance(member, type) and \ issubclass(member, _STIXBase) and \ hasattr(member, '_properties')