[ 
https://issues.apache.org/jira/browse/BEAM-7746?focusedWorklogId=490487&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-490487
 ]

ASF GitHub Bot logged work on BEAM-7746:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Sep/20 00:35
            Start Date: 25/Sep/20 00:35
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #12881:
URL: https://github.com/apache/beam/pull/12881#issuecomment-698656899


   > 23:36:24 apache_beam/runners/worker/data_plane.py:714: error: Incompatible 
return value type (got "Optional[GrpcClientDataChannel]", expected 
"GrpcClientDataChannel")  [return-value]
   
   Sure this shouldn't return optional as well? 
   
   > 23:36:24 apache_beam/runners/worker/operations.py:722: error: Argument 1 
to "append" of "list" has incompatible type "Tuple[DoOperation, 
Iterable[SplitResultResidual]]"; expected "Tuple[DoOperation, 
SplitResultResidual]"  [arg-type]
   
   self.dofn_runner.process does return an `Iterable[SplitResultResidual]`
   
   > 23:36:24 apache_beam/runners/worker/bundle_processor.py:241: error: 
Signature of "try_split" incompatible with supertype "Operation"  [override]
   
   The supertype returns Optional[Any], which should be compatible with this. 
   
   > 23:36:24 apache_beam/runners/worker/bundle_processor.py:978: error: 
"Operation" has no attribute "add_timer_info"  [attr-defined]
   > 23:36:24 apache_beam/runners/worker/bundle_processor.py:990: error: 
"Operation" has no attribute "process_timer"  [attr-defined]
   
   These will always be DoOperations.
   
   >23:36:24 apache_beam/runners/worker/bundle_processor.py:1568: error: 
Argument 5 to "StateBackedSideInputMap" has incompatible type "Coder"; expected 
"WindowedValueCoder"  [arg-type]
   
   I think this will always hold, we just don't know it due to having 
deserialized it with the generic mechanisms. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 490487)
    Time Spent: 97h 10m  (was: 97h)

> Add type hints to python code
> -----------------------------
>
>                 Key: BEAM-7746
>                 URL: https://issues.apache.org/jira/browse/BEAM-7746
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-py-core
>            Reporter: Chad Dombrova
>            Priority: P3
>          Time Spent: 97h 10m
>  Remaining Estimate: 0h
>
> As a developer of the beam source code, I would like the code to use pep484 
> type hints so that I can clearly see what types are required, get completion 
> in my IDE, and enforce code correctness via a static analyzer like mypy.
> This may be considered a precursor to BEAM-7060
> Work has been started here:  [https://github.com/apache/beam/pull/9056]
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to