Griffe extension for `@warnings.deprecated` (PEP 702).
Project description
griffe-warnings-deprecated
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file griffe_warnings_deprecated-1.1.1.tar.gz.
File metadata
- Download URL: griffe_warnings_deprecated-1.1.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9261369bf2acb8b5d24a0dc7895cce788208513d4349031d4ea315b979b2e99f
|
|
| MD5 |
405e7aa184fc77d89f829982b68435c1
|
|
| BLAKE2b-256 |
da9efc86f1e9270f143a395a601de81aa42a871722c34d4b3c7763658dc2e04d
|
File details
Details for the file griffe_warnings_deprecated-1.1.1-py3-none-any.whl.
File metadata
- Download URL: griffe_warnings_deprecated-1.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b7d765e82ca9139ed44ffe7bdebed0d3a46ce014ad5a35a2c22e9a16288737a
|
|
| MD5 |
1ff8fea3c35bc9e6b1d7563a31c262a0
|
|
| BLAKE2b-256 |
2f3cc2a9eee79bf2c8002d2fa370534bee93fdca39e8b1fc82e83d552d5d2c07
|