You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/02 00:45:00 UTC

[jira] [Work logged] (BEAM-7746) Add type hints to python code

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

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

                Author: ASF GitHub Bot
            Created on: 02/Nov/19 00:44
            Start Date: 02/Nov/19 00:44
    Worklog Time Spent: 10m 
      Work Description: aaltay commented on pull request #9056: [BEAM-7746] Add python type hints
URL: https://github.com/apache/beam/pull/9056#discussion_r341790865
 
 

 ##########
 File path: sdks/python/tox.ini
 ##########
 @@ -160,16 +160,17 @@ commands =
 [testenv:py27-lint]
 # Checks for py2 syntax errors
 deps =
+  -r build-requirements.txt
 
 Review comment:
   `tox` runs outside of gradle. (At least for me). What is the issue there?
   
   > I assume the reason for the two step test process (sdist + tox, each with its own virtualenv) is to ensure that tox is using an sdist built in the same way every time, using python2, just as it would be for distribution?
   
   sdist step is used for other things (for building artifacts for release). That is the reason for it to exists on its own.
   
   tox, I do not believe we spent time on configuring it to reuse existing virtualenv. If that is an option we can try that.
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 337633)
    Time Spent: 17h  (was: 16h 50m)

> 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
>            Assignee: Chad Dombrova
>            Priority: Major
>          Time Spent: 17h
>  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)