Skip to content

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

License

Notifications You must be signed in to change notification settings

python-platonic/generic-args

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published