Skip to content

Typing errors when running mypy on code that uses clickhouse-connect #567

@chriswithers-fuse

Description

@chriswithers-fuse

Describe the bug

Steps to reproduce

$ uv run mypy --version
mypy 1.15.0 (compiled: yes)

Any code which imports Client will complain with:

$ uv run mypy .
...: error: Module "clickhouse_connect.driver" does not explicitly export attribute "Client"  [attr-defined]

Expected behaviour

No mypy complaint

Configuration

$ uv run mypy --version
mypy 1.15.0 (compiled: yes)
$ uv tree | grep connect
Resolved 200 packages in 5ms
├── clickhouse-connect v0.9.2
$ uv run python --version
Python 3.12.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions