File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1515"""Shared helper functions for BigQuery API classes."""
1616
1717import base64
18- import copy
1918import datetime
2019import decimal
2120import json
@@ -1038,19 +1037,3 @@ def _isinstance_or_raise(
10381037
10391038 msg = f"Pass { value } as a '{ dtype } '{ or_none } . Got { type (value )} ."
10401039 raise TypeError (msg )
1041-
1042-
1043- def _from_api_repr (cls , resource : dict ):
1044- """Factory: constructs an instance of the class (cls)
1045- given its API representation.
1046-
1047- Args:
1048- resource (Dict[str, Any]):
1049- API representation of the object to be instantiated.
1050-
1051- Returns:
1052- An instance of the class initialized with data from 'resource'.
1053- """
1054- config = cls
1055- config ._properties = copy .deepcopy (resource )
1056- return config
You can’t perform that action at this time.
0 commit comments