Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonghwanhyeon/griffe-generics
A Griffe extension that resolves generic type parameters as bound types in subclasses
https://github.com/jonghwanhyeon/griffe-generics
generics griffe griffe-extension
Last synced: about 2 months ago
JSON representation
A Griffe extension that resolves generic type parameters as bound types in subclasses
- Host: GitHub
- URL: https://github.com/jonghwanhyeon/griffe-generics
- Owner: jonghwanhyeon
- License: mit
- Created: 2024-07-26T18:06:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T10:21:48.000Z (5 months ago)
- Last Synced: 2024-09-21T13:49:01.986Z (4 months ago)
- Topics: generics, griffe, griffe-extension
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# griffe-generics
![Build status](https://github.com/jonghwanhyeon/griffe-generics/actions/workflows/publish.yml/badge.svg)A Griffe extension that resolves generic type parameters as bound types in subclasses
## Example
Without extension:
![Without Extension](https://github.com/jonghwanhyeon/griffe-generics/raw/main/assets/without-extension.png)With extension:
![With Extension](https://github.com/jonghwanhyeon/griffe-generics/raw/main/assets/with-extension.png)## Install
To install **griffe-generics**, simply use pip:```console
$ pip install griffe-generics
```## Usage
```yaml
plugins:
- mkdocstrings:
handlers:
python:
options:
extensions:
- griffe_generics
```