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.

So...

``` py
from istype import isinstanceof

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

try use `from istype import isinstanceof as isinstance` !

## Supported types

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

Project details


Release history Release notifications

This version
History Node

0.1.2.0

History Node

0.1.1.0

History Node

0.1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
istype-0.1.2.0-py3.6.egg (9.7 kB) Copy SHA256 hash SHA256 Egg 3.6 Jan 3, 2018
istype-0.1.2.0.tar.gz (1.5 kB) Copy SHA256 hash SHA256 Source None Jan 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page