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

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

                Author: ASF GitHub Bot
            Created on: 13/Jun/18 05:44
            Start Date: 13/Jun/18 05:44
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on a change in pull request #5337: 
[BEAM-4007] Futurize typehints subpackage
URL: https://github.com/apache/beam/pull/5337#discussion_r194954778
 
 

 ##########
 File path: sdks/python/apache_beam/typehints/typehints_test.py
 ##########
 @@ -1034,8 +1040,14 @@ class DecoratorHelpers(TypeHintTestCase):
   def test_hint_helper(self):
     self.assertTrue(is_consistent_with(Any, int))
     self.assertTrue(is_consistent_with(int, Any))
-    self.assertTrue(is_consistent_with(str, object))
-    self.assertFalse(is_consistent_with(object, str))
+    # object builtin is shadowed by object imported from future.builtins on
 
 Review comment:
   Trying to understand why we need to use native_object in the test, given 
that we import object from builtins both in the test and in the typehints.py. 
Does the test not pass without this?
   Is this condition 
(https://github.com/RobbeSneyders/beam/blob/4fc7965ba67fd22a7a7c4a3935ec295aca2811be/sdks/python/apache_beam/typehints/typehints.py#L1110)
  evaluated differently without using native_object?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 111400)
            Time Spent: 10m
    Remaining Estimate: 0h

> Futurize and fix python 2 compatibility for typehints subpackage
> ----------------------------------------------------------------
>
>                 Key: BEAM-4007
>                 URL: https://issues.apache.org/jira/browse/BEAM-4007
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Robbe
>            Assignee: Robbe
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to