Easy and reliable way to verify that a given input matches a given class or generic type instance - and nothing else.
Project description
izzet
Ensure that value
matches expected_type
.
About
Borrowed from Typeguard's check_type function - The purpose of this package is to provide an easy and reliable way to verify that a given input matches a given class or generic type instance - and nothing else.
Usage
from typing import List
from izzet import izzet
izzet([1,2, "3"]).a(List[int]) # False
izzet([1,2, 3]).a(List[int]) # True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
izzet-1.0.2.tar.gz
(11.6 kB
view details)
File details
Details for the file izzet-1.0.2.tar.gz
.
File metadata
- Download URL: izzet-1.0.2.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01c818dd6be6ce611892b7959666c1fd0c82248ef993e9f35e5323257b3e8c8 |
|
MD5 | 61146afbadb5bbc91751e550b2f2c80c |
|
BLAKE2b-256 | 81fb28f1f5702f889fde5a033c9258c885f3c31be41fe6c6df1a99185cae3ad9 |