Skip to main content

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


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.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file izzet-1.0.0.tar.gz.

File metadata

  • Download URL: izzet-1.0.0.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

Hashes for izzet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 75044937b559fb4a6984294a2131a6f2e914de7d728955490e8f9002f1a84b17
MD5 36caa4999ea91d6eb5461a61a09530c4
BLAKE2b-256 2414d19aa6fe36dc67d50f9789213d55b4e4c27492ae9142fdab42d9affe8c9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page