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"], List[int]) # False
izzet([1,2, 3], 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.1.tar.gz
(11.6 kB
view details)
File details
Details for the file izzet-1.0.1.tar.gz
.
File metadata
- Download URL: izzet-1.0.1.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 | 0c9315e6f52bb0c0a809b74334a8c8979f93fc764403ad276c57206a84008161 |
|
MD5 | 1c0b0ba338a4253404aa79feb080bb77 |
|
BLAKE2b-256 | 19ef06f5e9113882d0485bd9e09b2b294f4ca927833fb0c3bd4463669c5ec6ea |