mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-13 10:00:39 +03:00
12 lines
496 B
Python
12 lines
496 B
Python
from ..utils.deprecated import warn_deprecation
|
|
from ..utils.subclass_with_meta import SubclassWithMeta
|
|
|
|
|
|
class AbstractType(SubclassWithMeta):
|
|
def __init_subclass__(cls, *args, **kwargs):
|
|
warn_deprecation(
|
|
"Abstract type is deprecated, please use normal object inheritance instead.\n"
|
|
"See more: https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md#deprecations"
|
|
)
|
|
super(AbstractType, cls).__init_subclass__(*args, **kwargs)
|