generic-args

Given an instantiated generic class, retrieve the type arguments of itself or its parents.


License
MIT
Install
pip install generic-args==0.0.2

Documentation

generic-args

Build Status codecov Python Version wemake-python-styleguide

Given an instantiated generic class, retrieve the type arguments of itself or its parents.

The packages solves the problem described at this StackOverflow question.

Installation

pip install generic-args

Example

Showcase how your project can be used:

from typing import List
from generic_args import generic_type_args

generic_type_args(List[int])
# (<type 'int'>, )

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 54efe958f72ac06e912a1423aa14be8b149f988f. See what is updated since then.