Skip to content

Module 'stat' has no attribute 'filemode' #1836

Closed
@yurikhan

Description

@yurikhan
from stat import filemode
$ mypy test1.py
test1.py:1: error: Module 'stat' has no attribute 'filemode'

Looking in my copy of typeshed/stdlib, I see that 3/stat.pyi does not contain a stub for filemode. 3.4/_stat.pyi does, but mypy does not see it there.

What is the right way to deal with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions