Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 20e2e6d

Browse files
robertwbsilviulica
authored andcommitted
Remove some deprecated names.
----Release Notes---- [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117554610
1 parent b76cc24 commit 20e2e6d

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

google/cloud/dataflow/transforms/core.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import copy
2020
import uuid
21-
import warnings
2221

2322
from google.cloud.dataflow import pvalue
2423
from google.cloud.dataflow import typehints
@@ -820,12 +819,6 @@ def typed(transform):
820819
| typed(Map('InjectDefault', lambda _, s: s, view)))
821820

822821

823-
def Combine(*args, **kwargs): # pylint: disable=invalid-name
824-
warnings.warn('Combine is deprecated, use CombineGlobally instead',
825-
DeprecationWarning)
826-
return CombineGlobally(*args, **kwargs)
827-
828-
829822
@ptransform_fn
830823
def CombinePerKey(label, pcoll, fn, *args, **kwargs): # pylint: disable=invalid-name
831824
"""A per-key Combine transform.

google/cloud/dataflow/typehints/decorators.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def foo((a, b)):
7474

7575
import inspect
7676
import types
77-
import warnings
7877

7978
from google.cloud.dataflow.typehints import check_constraint
8079
from google.cloud.dataflow.typehints import CompositeTypeHintError
@@ -340,12 +339,6 @@ def annotate(f):
340339
return annotate
341340

342341

343-
def takes(*args, **kwargs):
344-
warnings.warn('takes is deprectaed, use with_input_types instead',
345-
warnings.DeprecationWarning)
346-
return with_input_types(*args, **kwargs)
347-
348-
349342
def with_output_types(*return_type_hint, **kwargs):
350343
"""A decorator that type-checks defined type-hints for return values(s).
351344
@@ -409,12 +402,6 @@ def annotate(f):
409402
return annotate
410403

411404

412-
def returns(*args, **kwargs):
413-
warnings.warn('returns is deprecated, use with_output_types instead',
414-
warnings.DeprecationWarning)
415-
return with_output_types(*args, **kwargs)
416-
417-
418405
def _check_instance_type(
419406
type_constraint, instance, var_name=None, verbose=False):
420407
"""A helper function to report type-hint constraint violations.

0 commit comments

Comments
 (0)