mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	[3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)
* [3.9] [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917).
(cherry picked from commit 6ec0adefad)
			
			
This commit is contained in:
		
							parent
							
								
									3bb85672bb
								
							
						
					
					
						commit
						f7dca9b9c8
					
				
					 3 changed files with 14 additions and 2 deletions
				
			
		|  | @ -170,7 +170,7 @@ class EnumMeta(type): | |||
|     Metaclass for Enum | ||||
|     """ | ||||
|     @classmethod | ||||
|     def __prepare__(metacls, cls, bases): | ||||
|     def __prepare__(metacls, cls, bases, **kwds): | ||||
|         # check that previous enum members do not exist | ||||
|         metacls._check_for_existing_members(cls, bases) | ||||
|         # create the namespace dict | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ethan Furman
						Ethan Furman