Skip to content

Missing sub-module import statement is not detected #5

Open
@pylint-bot

Description

@pylint-bot

Originally reported by: Andrew Carman (BitBucket: carmandrew, GitHub: @carmandrew?)


When you run pylint on the following file, it reports no errors, but there is very clearly an error when running (AttributeError: 'module' object has no attribute 'saxutils').

import xml.sax.handler

print(xml.sax.handler)
print(xml.sax.saxutils)

Metadata

Metadata

Assignees

No one assigned

    Labels

    False Negative 🦋No message is emitted but something is wrong with the codeImport systemNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions