[jira] [Updated] (BEAM-10217) Suboptimal type inference on Python 3.6
[ https://issues.apache.org/jira/browse/BEAM-10217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Udi Meiri updated BEAM-10217: - Status: Open (was: Triage Needed) > Suboptimal type inference on Python 3.6 > --- > > Key: BEAM-10217 > URL: https://issues.apache.org/jira/browse/BEAM-10217 > Project: Beam > Issue Type: Bug > Components: sdk-py-core >Reporter: Valentyn Tymofieiev >Assignee: Udi Meiri >Priority: P2 > Time Spent: 40m > Remaining Estimate: 0h > > Following trivial_inference_test fails for me with AssertionError: :: > List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 > and 3.7.3. > {noformat} > def testMethodReturnsTuple(self): > class Person(object): > def __init__(self, name): > self.name = name > def parse_record(name_and_age): > name, age = name_and_age.split(',') > return Person(name), int(age) > self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], > lambda record: [parse_record(record)], [str]) > {noformat} > See: https://github.com/apache/beam/pull/11954. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (BEAM-10217) Suboptimal type inference on Python 3.6
[ https://issues.apache.org/jira/browse/BEAM-10217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentyn Tymofieiev updated BEAM-10217: --- Description: Following trivial_inference_test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} See: https://github.com/apache/beam/pull/11954. was: Following trivial_inference_test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} See: > Suboptimal type inference on Python 3.6 > --- > > Key: BEAM-10217 > URL: https://issues.apache.org/jira/browse/BEAM-10217 > Project: Beam > Issue Type: Bug > Components: sdk-py-core >Reporter: Valentyn Tymofieiev >Priority: P2 > Time Spent: 20m > Remaining Estimate: 0h > > Following trivial_inference_test fails for me with AssertionError: :: > List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 > and 3.7.3. > {noformat} > def testMethodReturnsTuple(self): > class Person(object): > def __init__(self, name): > self.name = name > def parse_record(name_and_age): > name, age = name_and_age.split(',') > return Person(name), int(age) > self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], > lambda record: [parse_record(record)], [str]) > {noformat} > See: https://github.com/apache/beam/pull/11954. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (BEAM-10217) Suboptimal type inference on Python 3.6
[ https://issues.apache.org/jira/browse/BEAM-10217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentyn Tymofieiev updated BEAM-10217: --- Description: Following trivial_inference_test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} See: was: Following trivial_inference_test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} > Suboptimal type inference on Python 3.6 > --- > > Key: BEAM-10217 > URL: https://issues.apache.org/jira/browse/BEAM-10217 > Project: Beam > Issue Type: Bug > Components: sdk-py-core >Reporter: Valentyn Tymofieiev >Priority: P2 > Time Spent: 10m > Remaining Estimate: 0h > > Following trivial_inference_test fails for me with AssertionError: :: > List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 > and 3.7.3. > {noformat} > def testMethodReturnsTuple(self): > class Person(object): > def __init__(self, name): > self.name = name > def parse_record(name_and_age): > name, age = name_and_age.split(',') > return Person(name), int(age) > self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], > lambda record: [parse_record(record)], [str]) > {noformat} > See: -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (BEAM-10217) Suboptimal type inference on Python 3.6
[ https://issues.apache.org/jira/browse/BEAM-10217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentyn Tymofieiev updated BEAM-10217: --- Description: Following trivial_inference_test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} was: Following test fails for me with AssertionError: :: List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 and 3.7.3. {noformat} def testMethodReturnsTuple(self): class Person(object): def __init__(self, name): self.name = name def parse_record(name_and_age): name, age = name_and_age.split(',') return Person(name), int(age) self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], lambda record: [parse_record(record)], [str]) {noformat} > Suboptimal type inference on Python 3.6 > --- > > Key: BEAM-10217 > URL: https://issues.apache.org/jira/browse/BEAM-10217 > Project: Beam > Issue Type: Bug > Components: sdk-py-core >Reporter: Valentyn Tymofieiev >Priority: P2 > > Following trivial_inference_test fails for me with AssertionError: :: > List[Tuple[Person, int]] != List[Any] on Python 3.6.8; Passed on 3.5.2, 3.5.6 > and 3.7.3. > {noformat} > def testMethodReturnsTuple(self): > class Person(object): > def __init__(self, name): > self.name = name > def parse_record(name_and_age): > name, age = name_and_age.split(',') > return Person(name), int(age) > self.assertReturnType(typehints.List[typehints.Tuple[Person, int]], > lambda record: [parse_record(record)], [str]) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)