aio-libs / aio-libs/aioodbc

Type hints are not readily available through Pylance in VS Code

未关闭
#421 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
326
派生
62
PR 合并指标
30 天内没有已合并 PR

描述

Alternate title: "aioodbc does not support PEP 561"

[PEP 561 – Distributing and Packaging Type Information] defines the mechanisms for distributing packages with type hints:

> Package maintainers who wish to support type checking of their code MUST add a marker file named `py.typed` to their package supporting typing. This marker applies recursively: if a top-level package includes it, all its sub-packages MUST support type checking as well.

Since aioodbc does not contain a `py.typed` marker file, developers may find themselves without any type hints for the package. Developers are unable to take advantage of the type annotations already part of the project.

Most typed packages on PyPI publish place their `py.typed` file in the namespace directory (e.g., "\/aioodbc") to better centralize the type checking to the package source code. It would be a huge improvement to the developer experience if the aioodbc project included a `py.typed` marker file alongside the package.

[PEP 561 – Distributing and Packaging Type Information]:
https://peps.python.org/pep-0561/

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。