Skip to content

Commit bf45bd2

Browse files
committed
revert type hints
1 parent 75168c7 commit bf45bd2

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

google/cloud/bigquery/job/base.py

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
"""Base classes and helpers for job classes."""
1616

17-
from __future__ import annotations
18-
1917
from collections import namedtuple
2018
import copy
2119
import http
@@ -442,12 +440,9 @@ def configuration(self) -> _JobConfig:
442440
return configuration
443441

444442
@property
445-
def job_id(self) -> Optional[str]:
443+
def job_id(self):
446444
"""str: ID of the job."""
447-
return typing.cast(
448-
Optional[str],
449-
_helpers._get_sub_prop(self._properties, ["jobReference", "jobId"]),
450-
)
445+
return _helpers._get_sub_prop(self._properties, ["jobReference", "jobId"])
451446

452447
@property
453448
def parent_job_id(self):
@@ -498,24 +493,18 @@ def num_child_jobs(self):
498493
return int(count) if count is not None else 0
499494

500495
@property
501-
def project(self) -> Optional[str]:
496+
def project(self):
502497
"""Project bound to the job.
503498
504499
Returns:
505500
str: the project (derived from the client).
506501
"""
507-
return typing.cast(
508-
Optional[str],
509-
_helpers._get_sub_prop(self._properties, ["jobReference", "projectId"]),
510-
)
502+
return _helpers._get_sub_prop(self._properties, ["jobReference", "projectId"])
511503

512504
@property
513-
def location(self) -> Optional[str]:
505+
def location(self):
514506
"""str: Location where the job runs."""
515-
return typing.cast(
516-
Optional[str],
517-
_helpers._get_sub_prop(self._properties, ["jobReference", "location"]),
518-
)
507+
return _helpers._get_sub_prop(self._properties, ["jobReference", "location"])
519508

520509
@property
521510
def reservation_id(self):

0 commit comments

Comments
 (0)