Skip to content

Commit 418fd07

Browse files
committed
Adds more updates re: mypy and pytype
1 parent d8b1ea9 commit 418fd07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

google/cloud/bigquery/schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ class TableSchema:
610610
def __init__(
611611
self, fields: Optional[list] = None, foreign_type_info: Optional[str] = None
612612
):
613-
self._properties: Dict[str, Any] = {}
613+
self._properties: Dict[str, Any] = {}
614614
self.fields = fields
615615
self.foreign_type_info = foreign_type_info
616616

@@ -768,9 +768,9 @@ def serde_info(self) -> Any:
768768
"""Optional. Serializer and deserializer information."""
769769

770770
prop = _get_sub_prop(self._properties, ["serDeInfo"])
771-
print(f"DINOSAUR in SD: {prop}\n\n{self._properties}")
772771
if prop is not None:
773-
prop = SerDeInfo().from_api_repr(prop)
772+
prop = StorageDescriptor().from_api_repr(prop)
773+
print(f"DINOSAUR prop: {prop}")
774774

775775
return prop
776776

@@ -892,6 +892,6 @@ def from_api_repr(cls, resource: dict) -> SerDeInfo:
892892
Returns:
893893
An instance of the class initialized with data from 'resource'.
894894
"""
895-
config = cls()
895+
config = cls("")
896896
config._properties = copy.deepcopy(resource)
897897
return config

0 commit comments

Comments
 (0)