File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -267,20 +267,20 @@ def _simple_json_normalize(
267267 return normalized_json_object
268268
269269
270- def _validate_meta (meta : str | list [str | list [str ]]) -> None :
270+ def _validate_meta (meta : str | list [str | list [str ]] | None ) -> None :
271271 """
272272 Validate that meta parameter contains only strings or lists of strings.
273-
274273 Parameters
275274 ----------
276- meta : str or list of str or list of list of str
275+ meta : str or list of str or list of list of str or None
277276 The meta parameter to validate.
278-
279277 Raises
280278 ------
281279 TypeError
282280 If meta contains elements that are not strings or lists of strings.
283281 """
282+ if meta is None :
283+ return
284284 if isinstance (meta , str ):
285285 return
286286 for item in meta :
@@ -468,8 +468,7 @@ def json_normalize(
468468
469469 Returns normalized data with columns prefixed with the given string.
470470 """
471- if meta is not None :
472- _validate_meta (meta )
471+ _validate_meta (meta )
473472
474473 def _pull_field (
475474 js : dict [str , Any ], spec : list | str , extract_record : bool = False
You can’t perform that action at this time.
0 commit comments