mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-31 07:57:26 +03:00 
			
		
		
		
	Use OrderedDict in Enum by default
This commit is contained in:
		
							parent
							
								
									feaa09616d
								
							
						
					
					
						commit
						e7e2ed518a
					
				|  | @ -94,7 +94,7 @@ def _make_class_unpicklable(cls): | ||||||
|     cls.__module__ = '<unknown>' |     cls.__module__ = '<unknown>' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class _EnumDict(dict): | class _EnumDict(OrderedDict): | ||||||
|     """Track enum member order and ensure member names are not reused. |     """Track enum member order and ensure member names are not reused. | ||||||
| 
 | 
 | ||||||
|     EnumMeta will use the names found in self._member_names as the |     EnumMeta will use the names found in self._member_names as the | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user