Skip to main content

Mark objects imported with redundant aliases as public.

Project description

griffe-public-redundant-aliases

ci documentation pypi version gitter

Mark objects imported with redundant aliases as public.

Installation

pip install griffe-public-redundant-aliases

Usage

Enable the griffe_public_redundant_aliases extension. Now all objects imported with redundant aliases will be marked as public, as per the convention.

# 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

With MkDocs:

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

Sponsors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

griffe_public_redundant_aliases-0.3.0.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file griffe_public_redundant_aliases-0.3.0.tar.gz.

File metadata

File hashes

Hashes for griffe_public_redundant_aliases-0.3.0.tar.gz
Algorithm Hash digest
SHA256 45cbcfbe7f28408d043b446f699f4b92ee2477b4933f97d344f3edb2970325ec
MD5 6085dc5cd5de19d2b788c98e7dd44997
BLAKE2b-256 8fb8a6515669cb0c000e0d05768c92e1f1e673e7ebea66ba1ddaf70cc87714f6

See more details on using hashes here.

File details

Details for the file griffe_public_redundant_aliases-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_public_redundant_aliases-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 091af6f2d3fbcf3baba21ae3a8cca284812da4cddf3c564d6cc1013ffb005901
MD5 05758008b4125e89b325a8f1be1f1142
BLAKE2b-256 8ebb7c27ce87737b0a170052de0356023a8fafb77d01a76ed455e6517cd6090d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page