Skip to main content

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.

Metadata

Release files for generic-args 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for generic-args 0.0.2
File Size Uploaded Provenance Actions
generic-args-0.0.2.tar.gz 3.9 kB Without provenance Details for generic-args-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for generic-args 0.0.2
File Interpreter ABI Platform Actions
generic_args-0.0.2-py3-none-any.whl Python 3 none any Details for generic_args-0.0.2-py3-none-any.whl

Total release size: 8.2 kB

Release files / generic-args-0.0.2.tar.gz

Download URL generic-args-0.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6b36863f307a244124e8958b4b77435b826ccbe4aa46481130b374f42350643d
BLAKE2b-256 checksum
How to use checksums
b795865de82dfa5175db54e41d27e3eccc9b9cb88e29fef8e78cbed740510083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.3 CPython/3.8.6 Linux/5.4.0-65-generic

Release files / generic_args-0.0.2-py3-none-any.whl

Download URL generic_args-0.0.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe7c32b4432408da19af619d14864dcd49bf8b8040dde28ff6038894c62901ff
BLAKE2b-256 checksum
How to use checksums
b027a0d63a46dcd4ee096ffee085a5f63c8dce5377760c6d2225990c5ea053f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.3 CPython/3.8.6 Linux/5.4.0-65-generic

Security for generic-args 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page