mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 01:47:45 +03:00 
			
		
		
		
	Merge pull request #281 from Globegitter/union-type-export
Export union type directly.
This commit is contained in:
		
						commit
						e504c7227e
					
				| 
						 | 
					@ -30,11 +30,13 @@ if not __SETUP__:
 | 
				
			||||||
        List, NonNull,
 | 
					        List, NonNull,
 | 
				
			||||||
        Enum,
 | 
					        Enum,
 | 
				
			||||||
        Argument,
 | 
					        Argument,
 | 
				
			||||||
        Dynamic
 | 
					        Dynamic,
 | 
				
			||||||
 | 
					        Union,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    from .relay import (
 | 
					    from .relay import (
 | 
				
			||||||
        Node,
 | 
					        Node,
 | 
				
			||||||
        is_node,
 | 
					        is_node,
 | 
				
			||||||
 | 
					        GlobalID,
 | 
				
			||||||
        ClientIDMutation,
 | 
					        ClientIDMutation,
 | 
				
			||||||
        Connection,
 | 
					        Connection,
 | 
				
			||||||
        ConnectionField,
 | 
					        ConnectionField,
 | 
				
			||||||
| 
						 | 
					@ -62,9 +64,11 @@ if not __SETUP__:
 | 
				
			||||||
        'NonNull',
 | 
					        'NonNull',
 | 
				
			||||||
        'Argument',
 | 
					        'Argument',
 | 
				
			||||||
        'Dynamic',
 | 
					        'Dynamic',
 | 
				
			||||||
 | 
					        'Union',
 | 
				
			||||||
        'resolve_only_args',
 | 
					        'resolve_only_args',
 | 
				
			||||||
        'Node',
 | 
					        'Node',
 | 
				
			||||||
        'is_node',
 | 
					        'is_node',
 | 
				
			||||||
 | 
					        'GlobalID',
 | 
				
			||||||
        'ClientIDMutation',
 | 
					        'ClientIDMutation',
 | 
				
			||||||
        'Connection',
 | 
					        'Connection',
 | 
				
			||||||
        'ConnectionField',
 | 
					        'ConnectionField',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,11 @@
 | 
				
			||||||
from .node import Node, is_node
 | 
					from .node import Node, is_node, GlobalID
 | 
				
			||||||
from .mutation import ClientIDMutation
 | 
					from .mutation import ClientIDMutation
 | 
				
			||||||
from .connection import Connection, ConnectionField, PageInfo
 | 
					from .connection import Connection, ConnectionField, PageInfo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__all__ = [
 | 
					__all__ = [
 | 
				
			||||||
    'Node',
 | 
					    'Node',
 | 
				
			||||||
    'is_node',
 | 
					    'is_node',
 | 
				
			||||||
 | 
					    'GlobalID',
 | 
				
			||||||
    'ClientIDMutation',
 | 
					    'ClientIDMutation',
 | 
				
			||||||
    'Connection',
 | 
					    'Connection',
 | 
				
			||||||
    'ConnectionField',
 | 
					    'ConnectionField',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ from .inputfield import InputField
 | 
				
			||||||
from .argument import Argument
 | 
					from .argument import Argument
 | 
				
			||||||
from .inputobjecttype import InputObjectType
 | 
					from .inputobjecttype import InputObjectType
 | 
				
			||||||
from .dynamic import Dynamic
 | 
					from .dynamic import Dynamic
 | 
				
			||||||
 | 
					from .union import Union
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__all__ = [
 | 
					__all__ = [
 | 
				
			||||||
| 
						 | 
					@ -33,5 +34,6 @@ __all__ = [
 | 
				
			||||||
    'Boolean',
 | 
					    'Boolean',
 | 
				
			||||||
    'List',
 | 
					    'List',
 | 
				
			||||||
    'NonNull',
 | 
					    'NonNull',
 | 
				
			||||||
    'Argument'
 | 
					    'Argument',
 | 
				
			||||||
    'Dynamic']
 | 
					    'Dynamic',
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user