mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-40084: Enum - dir() includes member attributes (GH-19219)
(cherry picked from commit 68526fe258)
Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
			
			
This commit is contained in:
		
							parent
							
								
									dbb00062dc
								
							
						
					
					
						commit
						33cbb04986
					
				
					 5 changed files with 20 additions and 2 deletions
				
			
		|  | @ -699,7 +699,7 @@ def __dir__(self): | |||
|                 for cls in self.__class__.mro() | ||||
|                 for m in cls.__dict__ | ||||
|                 if m[0] != '_' and m not in self._member_map_ | ||||
|                 ] | ||||
|                 ] + [m for m in self.__dict__ if m[0] != '_'] | ||||
|         return (['__class__', '__doc__', '__module__'] + added_behavior) | ||||
| 
 | ||||
|     def __format__(self, format_spec): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)