mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +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
|
|
```
|