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
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
The reason is that the "from" keyword triggers a "from X import Y" parsing, which fails.
C:\Users\rachum\code\testing_grounds>cat example.py
raise RuntimeError() from None
C:\Users\rachum\code\testing_grounds>python example.py # this syntax is legal in Python 3
Traceback (most recent call last):
File "example.py", line 1, in <module>
raise RuntimeError() from None
RuntimeError
C:\Users\rachum\code\testing_grounds>pydocstyle example.py
Traceback (most recent call last):
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\rachum\AppData\Local\Programs\Python\Python35-32\Scripts\pydocstyle.exe\__main__.py", line 9, in <module>
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 1745, in main
sys.exit(run_pydocstyle(use_pep257))
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 1360, in run_pydocstyle
errors.extend(check((filename,), select=checked_codes))
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 1297, in check
for error in PEP257Checker().check_source(source, filename):
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 1398, in check_source
module = parse(StringIO(source), filename)
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 276, in __call__
return self.parse_module()
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 429, in parse_module
children = list(self.parse_definitions(Module, all=True))
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 376, in parse_definitions
self.parse_from_import_statement()
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 510, in parse_from_import_statement
is_future_import = self._parse_from_import_source()
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 525, in _parse_from_import_source
self.check_current(value='import')
File "c:\users\rachum\appdata\local\programs\python\python35-32\lib\site-packages\pydocstyle.py", line 501, in check_current
assert kind_valid and value_valid, msg
AssertionError:
Unexpected token at line 2:
In file: example.py
Got kind tk.ENDMARKER
Got value
The text was updated successfully, but these errors were encountered:
The reason is that the "from" keyword triggers a "from X import Y" parsing, which fails.
The text was updated successfully, but these errors were encountered: