mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-14 05:36:45 +03:00
26 lines
385 B
Markdown
26 lines
385 B
Markdown
# v1.0 Upgrade Guide
|
|
|
|
## Deprecations
|
|
|
|
|
|
* AbstractType is deprecated, please use normal inheritance instead.
|
|
|
|
Before:
|
|
|
|
```python
|
|
class CommonFields(AbstractType):
|
|
name = String()
|
|
|
|
class Pet(CommonFields, Interface):
|
|
pass
|
|
```
|
|
|
|
With 2.0:
|
|
```python
|
|
class CommonFields(object):
|
|
name = String()
|
|
|
|
class Pet(CommonFields, Interface):
|
|
pass
|
|
```
|