Skip to main content

No project description provided

Project description

# istype

After python 3.5, we got a `typing` module.

## Usage

We known `typing.Union[int, str]` mean the type is one of `int` or `str`.
However, we cannot use `isinstance()` for test it.


``` py
from istype import ISA

ISA(1, Union[int, str]) # now it will return True

try use `from istype import ISA as isinstance` !

## Supported types

* Union
* Any
* Optional
* Tuple
* List
* AnyStr
* Set
* Dict
* Type
* Iterable
* Collection

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for istype, version
Filename, size File type Python version Upload date Hashes
Filename, size istype- (9.8 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size istype- (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page