8000 syntax error on import · Issue #2976 · pylint-dev/pylint · GitHub
[go: up one dir, main page]

Skip to content
syntax error on import #2976
@thorstenkampe

Description

@thorstenkampe

Steps to reproduce

  1. Create Python module containing import inspect
  2. run pylint on this file

Current behavior

************* Module test
test.py:1:0: C0111: Missing module docstring (missing-docstring)
test.py:1:0: E0001: Cannot import 'inspect' due to syntax error 'invalid syntax (<unknown>, line 1328)' (syntax-error)
test.py:1:0: W0611: Unused import inspect (unused-import)

-----------------------------------------------------------------------
Your code has been rated at -60.00/10 (previous run: -50.00/10, -10.00)

Expected behavior

No syntax error on importing inspect

> python.exe -V
Python 3.8.0b1
> python.exe -c 'import inspect'
> [no error]

pylint --version output

pylint 2.3.1
astroid 2.2.5
Python 3.8.0b1 (tags/v3.8.0b1:3b5deb0116, Jun  4 2019, 19:52:55) [MSC v.1916 64 bit (AMD64)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0