You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this - please try running the latest master using Python 3.8 or higher. I need to update the binary releases from Python 3.7 to Python 3.8 sometime.
@unittest.skipIf(sys.version_info.minor<8, 'Need to upgrade Pynsource to run in Python 3.8 to handle this syntax')deftest_issue_class_type_annotation_85(self):
"""This seems to pass OK under Python 3.9 Hmm - perhaps this error only happens with lower version of Python - will need to check. As it stands, it looks promising that no changes to the Pynsource parser are needed, only a Python version bump. That is, assuming the source code reproduces the problem. """source_code=dedent(""" class SimpleHttpTask(Task): url = None method = "GET" client: requests.Session = requests.Session() """
)
pmodel, debuginfo=parse_source(source_code,
options={"mode": 3},
html_debug_root_name="test_issue_class_type_annotation_85")
self.assertNotIn("error", pmodel.errors)
Activity
abulka commentedon Jun 3, 2021
Thanks for reporting this - please try running the latest master using Python 3.8 or higher. I need to update the binary releases from Python 3.7 to Python 3.8 sometime.
abulka commentedon Jun 29, 2021
Further testing is pending.
test created for issue #85
better tests and parsing for issue #85, #93, #94 - tests pass under p…
abulka commentedon Jul 8, 2021
Latest master branch and
1.78 betabinary release should have fixed this.Official
1.78release only a few days away.