Skip to main content

Griffe extension for `@warnings.deprecated` (PEP 702).

Project description

griffe-warnings-deprecated

ci documentation pypi version gitpod gitter

Griffe extension for @warnings.deprecated (PEP 702).

Installation

pip install griffe-warnings-deprecated

Usage

The option values in the following examples are the default ones, you can omit them if you like the defaults.

Command-line

griffe dump mypackage -e griffe_warnings_deprecated

See command-line usage in Griffe's documentation.

Python

import griffe

griffe.load(
    "mypackage",
    extensions=griffe.load_extensions(
        [{"griffe_warnings_deprecated": {
            "kind": "danger",
            "title": "Deprecated",
            "label": "deprecated"
        }}]
    )
)

See programmatic usage in Griffe's documentation.

MkDocs

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_warnings_deprecated:
              kind: danger
              title: Deprecated

See MkDocs usage in Griffe's documentation.


Options:

  • kind: The admonition kind (default: danger).
  • title: The admonition title (default: Deprecated). Can be set to null to use the message as title.
  • label: The label added to deprecated objects (default: deprecated). Can be set to null.

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_warnings_deprecated-1.1.0.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file griffe_warnings_deprecated-1.1.0.tar.gz.

File metadata

File hashes

Hashes for griffe_warnings_deprecated-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7bf21de327d59c66c7ce08d0166aa4292ce0577ff113de5878f428d102b6f7c5
MD5 165db00eb6aa3ea381f1e1be08f08750
BLAKE2b-256 7e0ef034e1714eb2c694d6196c75f77a02f9c69d19f9961c4804a016397bf3e5

See more details on using hashes here.

File details

Details for the file griffe_warnings_deprecated-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_warnings_deprecated-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b0e8bfd6e5add3945d4d9805b2a41c72409e456733965be276d55f01e8a7a2
MD5 b8ee2bb12eb1afef4fd80ad3db251911
BLAKE2b-256 434cb7241f03ad1f22ec2eed33b0f90c4f8c949e3395c4b7488670b07225a20b

See more details on using hashes here.

Supported by

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