File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# Import ExceptionGroup for Python < 3.11 compatibility
1515if sys .version_info >= (3 , 11 ):
1616 from builtins import ExceptionGroup
17- else :
17+ else : # pragma: no cover
1818 from exceptiongroup import ExceptionGroup
1919
2020# Global registry for all tags discovered by checker decorators
@@ -167,13 +167,6 @@ def create_and_register(self, model: type[Resource[Any]]) -> Resource[Any]:
167167 if model .get_field_annotation (field_name , Required ) == Required .true
168168 ]
169169 obj = fill_with_random_values (self .context , model (), self , field_names )
170-
171- # Should not happen since we're filling required fields, but handle just in case
172- if obj is None :
173- raise ValueError (
174- f"Could not create valid { model .__name__ } object with required fields"
175- )
176-
177170 created = self .context .client .create (obj )
178171
179172 # Handle the case where create might return Error or dict
You can’t perform that action at this time.
0 commit comments