Skip to content

Commit 1418301

Browse files
authored
Remove subclass polyfill (#1156)
The subclass polyfill was only needed for Python 2.7-3.5 Python 3.6 introduced the __init_subclass__, so since Graphene now requires Python 3.6+, this is no longer needed. https://www.python.org/dev/peps/pep-0487/
1 parent 1cf303a commit 1418301

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

graphene/pyutils/init_subclass.py

-23
This file was deleted.

graphene/utils/subclass_with_meta.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from inspect import isclass
22

3-
from ..pyutils.init_subclass import InitSubclassMeta
43
from .props import props
54

65

7-
class SubclassWithMeta_Meta(InitSubclassMeta):
6+
class SubclassWithMeta_Meta(type):
87
_meta = None
98

109
def __str__(cls):

0 commit comments

Comments
 (0)