Metadata-Version: 1.0
Name: istype
Version: 0.1.0.0
Summary: UNKNOWN
Home-page: https://github.com/Cologler/istype-python
Author: cologler
Author-email: skyoflw@gmail.com
License: MIT
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 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
        
Keywords: python,typing
Platform: UNKNOWN
