Skip to main content

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

Project description

griffe-warnings-deprecated

ci documentation pypi version 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.

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

Uploaded Source

Built Distribution

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

griffe_warnings_deprecated-1.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for griffe_warnings_deprecated-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9261369bf2acb8b5d24a0dc7895cce788208513d4349031d4ea315b979b2e99f
MD5 405e7aa184fc77d89f829982b68435c1
BLAKE2b-256 da9efc86f1e9270f143a395a601de81aa42a871722c34d4b3c7763658dc2e04d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_warnings_deprecated-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b7d765e82ca9139ed44ffe7bdebed0d3a46ce014ad5a35a2c22e9a16288737a
MD5 1ff8fea3c35bc9e6b1d7563a31c262a0
BLAKE2b-256 2f3cc2a9eee79bf2c8002d2fa370534bee93fdca39e8b1fc82e83d552d5d2c07

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