mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	suppress errors in fbcode/vision - batch 2
				
					
				
			Differential Revision: D35590813 fbshipit-source-id: 0f35d7193f839a41f3cac18bf20236b815368f19
This commit is contained in:
		
							parent
							
								
									b1ff9d9fd4
								
							
						
					
					
						commit
						b79764ea69
					
				@ -277,6 +277,8 @@ def _unwrap_type(tp):
 | 
			
		||||
 | 
			
		||||
def _get_dataclass_field_default(field: Field) -> Any:
 | 
			
		||||
    if field.default_factory is not MISSING:
 | 
			
		||||
        # pyre-fixme[29]: `Union[dataclasses._MISSING_TYPE,
 | 
			
		||||
        #  dataclasses._DefaultFactory[typing.Any]]` is not a function.
 | 
			
		||||
        return field.default_factory()
 | 
			
		||||
    elif field.default is not MISSING:
 | 
			
		||||
        return field.default
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user