crate / crate/sqlalchemy-cratedb

Package is missing library stubs or py.typed marker

Open
#187 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9
Forks
4
Avg merge
6d 12h
Merged PRs (30d)
3

Description

## Problem

When deriving a CrateDB adapter for LangChain from [langchain-postgres](https://github.com/langchain-ai/langchain-postgres), we are observing this error when invoking `make lint`.

```
langchain_cratedb/cratedb/model.py:16: error: Skipping analyzing "sqlalchemy_cratedb": module is installed, but missing library stubs or py.typed marker [import-untyped]
```

## Workaround
For your `pyproject.toml`.
```toml
[tool.mypy]
ignore_missing_imports = "True"
```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting pyproject.toml and the package configuration related to the sqlalchemy_cratedb distribution. Run the repository's make lint command, then verify that the consuming langchain_cratedb/model.py import is analyzed without the missing-stubs or py.typed warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlalchemy
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.