From commits-return-113412-archive-asf-public=cust-asf.ponee.io@beam.apache.org Thu Mar 25 01:21:55 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 8AA38180630 for ; Thu, 25 Mar 2021 02:21:55 +0100 (CET) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id C74F74339F for ; Thu, 25 Mar 2021 01:21:54 +0000 (UTC) Received: (qmail 68762 invoked by uid 500); 25 Mar 2021 01:21:54 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 68753 invoked by uid 99); 25 Mar 2021 01:21:54 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2021 01:21:54 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 48E208E947; Thu, 25 Mar 2021 01:21:54 +0000 (UTC) Date: Thu, 25 Mar 2021 01:21:51 +0000 To: "commits@beam.apache.org" Subject: [beam] branch master updated: Use beam, rather than typing, list type hint. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <161663530632.17200.5680159112425849317@gitbox.apache.org> From: heejong@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: beam X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 2bb36f8c1b0b6220944751658061ae54e0027bc6 X-Git-Newrev: 92e7f830ecdbd36acf249b7fe432a9f9890047cb X-Git-Rev: 92e7f830ecdbd36acf249b7fe432a9f9890047cb X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. heejong pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/beam.git The following commit(s) were added to refs/heads/master by this push: new 92e7f83 Use beam, rather than typing, list type hint. new 4d99d92 Merge pull request #14331 from robertwb/list-coder 92e7f83 is described below commit 92e7f830ecdbd36acf249b7fe432a9f9890047cb Author: Robert Bradshaw AuthorDate: Wed Mar 24 15:48:53 2021 -0700 Use beam, rather than typing, list type hint. This allows nesting of non-typing types. --- sdks/python/apache_beam/coders/coders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/python/apache_beam/coders/coders.py b/sdks/python/apache_beam/coders/coders.py index a54936b..f65e1c1 100644 --- a/sdks/python/apache_beam/coders/coders.py +++ b/sdks/python/apache_beam/coders/coders.py @@ -1192,7 +1192,7 @@ Coder.register_structured_urn(common_urns.coders.ITERABLE.urn, IterableCoder) class ListCoder(ListLikeCoder): """Coder of Python lists.""" def to_type_hint(self): - return List[self._elem_coder.to_type_hint()] + return typehints.List[self._elem_coder.to_type_hint()] class GlobalWindowCoder(SingletonCoder):