mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-08 23:50:38 +03:00
16 lines
225 B
Python
16 lines
225 B
Python
class _OldClass:
|
|
pass
|
|
|
|
|
|
class _NewClass(object):
|
|
pass
|
|
|
|
|
|
_all_vars = set(dir(_OldClass) + dir(_NewClass))
|
|
|
|
|
|
def props(x):
|
|
return {
|
|
key: value for key, value in vars(x).items() if key not in _all_vars
|
|
}
|