beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Bradshaw (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-2611) Better document and validate arguments of WindowInto
Date Thu, 13 Jul 2017 04:36:00 GMT
Robert Bradshaw created BEAM-2611:
-------------------------------------

             Summary: Better document and validate arguments of WindowInto
                 Key: BEAM-2611
                 URL: https://issues.apache.org/jira/browse/BEAM-2611
             Project: Beam
          Issue Type: Bug
          Components: sdk-py
            Reporter: Robert Bradshaw
            Assignee: Ahmet Altay


The current documentation is

{code:python}
  def __init__(self, windowfn, **kwargs):
    """Initializes a WindowInto transform.

    Args:
      windowfn: Function to be used for windowing
    """
{code}

kwargs is taken to force keyword specification of the triggerfn, accumulation_mode, and timestamp_combiner,
but the fact that these three arguments are the expected ones in the docstring. We should
also validate that no other arguments are ignored (in particular, a missspelling of the above).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message