Skip to content

mypy error: skipping analyzing "arango.database" #203

Closed
@aMahanna

Description

@aMahanna

Steps to reproduce:

  1. In an empty directory, create a virtual environment with a method of choice
  2. pip install mypy python-arango
  3. echo "from arango.database import StandardDatabase" >> temp.py
  4. mypy temp.py
  5. Observe the following:
❯ mypy temp.py 
temp.py:1: error: Skipping analyzing "arango.database": module is installed, but missing library stubs or py.typed marker
temp.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Workaround

Include the following snippet in a mypy.ini file (or setup.cfg / pyproject.toml):

[mypy-arango.*]
ignore_missing_imports = True

Permanent Solution Proposal

Consider adding a py.typed file under arango/, and update setup.py accordingly, as suggested here: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions