mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-31 07:57:26 +03:00 
			
		
		
		
	Improvex syntax
This commit is contained in:
		
							parent
							
								
									bee0af1125
								
							
						
					
					
						commit
						3586fdfb77
					
				|  | @ -35,7 +35,10 @@ class WrapRoot(object): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def debug_objecttype(objecttype): | def debug_objecttype(objecttype): | ||||||
|     return type('Debug{}'.format(objecttype._meta.type_name), (WrapRoot, objecttype), {'debug': Field(DjangoDebug, name='__debug')}) |     return type( | ||||||
|  |         'Debug{}'.format(objecttype._meta.type_name), | ||||||
|  |         (WrapRoot, objecttype), | ||||||
|  |         {'debug': Field(DjangoDebug, name='__debug')}) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class DebugSchema(Schema): | class DebugSchema(Schema): | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ from collections import Iterable | ||||||
| from functools import wraps | from functools import wraps | ||||||
| 
 | 
 | ||||||
| import six | import six | ||||||
|  | 
 | ||||||
| from graphql_relay.connection.arrayconnection import connection_from_list | from graphql_relay.connection.arrayconnection import connection_from_list | ||||||
| from graphql_relay.node.node import to_global_id | from graphql_relay.node.node import to_global_id | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user