Skip to content

behavior change in astroid 3.3.10: pyc files cause syntax-error in pylint #2733

@vulli321

Description

@vulli321

issue caused by this pr: #2728

in astroid 3.3.9 pyc files would trigger a NoSourceFile exception in get_source_file, in 3.3.10 they don't
in my codebase this causes syntax-error reports from pylint

i assume this change was not intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvalidNot a bug, already exists or already fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions