Skip to content

Commit

Permalink
Remove subclass polyfill (#1156)
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
syrusakbary committed Mar 14, 2020
1 parent 1cf303a commit 1418301
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
23 changes: 0 additions & 23 deletions graphene/pyutils/init_subclass.py

This file was deleted.

3 changes: 1 addition & 2 deletions graphene/utils/subclass_with_meta.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from inspect import isclass

from ..pyutils.init_subclass import InitSubclassMeta
from .props import props


class SubclassWithMeta_Meta(InitSubclassMeta):
class SubclassWithMeta_Meta(type):
_meta = None

def __str__(cls):
Expand Down

0 comments on commit 1418301

Please sign in to comment.