Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Spurious mypy errors due to incomplete third party stubs #708

Closed
@snakescott

Description

@snakescott

The python2 stubs for both sqlalchemy and boto are incomplete, which is totally fine! I hope to be able to contribute some time to building them out.

What I think may be a problem is that mypy assumes that the stubs are complete, and so will report that an invocation of a perfectly valid function is an error. Would it be possible to designate various stubs and/or subdirectories as "open"/"incomplete", such that the behavior becomes stub_file.get(key, Any) instead of the current (and correct when stubs are complete) stub_file[key]?

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