跳转到主要内容

将使用冗余别名导入的对象标记为公共。

项目描述

griffe-public-redundant-aliases

documentation gitpod gitter

将使用冗余别名导入的对象标记为公共。

安装

此项目仅供赞助商使用,通过我的Insiders计划。请参阅Insiders 说明安装说明

用法

启用 griffe_public_redundant_aliases 扩展。现在,所有使用冗余别名导入的对象都将按约定标记为公共。

# Following objects will be marked as public.
from somewhere import Thing as Thing
from somewhere import Other as Other

# Following object won't be marked as public.
from somewhere import Stuff

使用 MkDocs

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_public_redundant_aliases

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

griffe_public_redundant_aliases-0.2.0.tar.gz (31.3 kB 查看哈希值)

上传时间

构建分发版

griffe_public_redundant_aliases-0.2.0-py3-none-any.whl (4.9 kB 查看哈希值)

上传时间 Python 3

由以下支持