Skip to content

Ran4/pytypecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provides a typecheck function to check a type using PEP 484 style type descriptions

Usage

>>> from typing import List, Union >>> from typechecker import typecheck >>> typecheck(List[Union[str, int]], ["hello"]) True >>> typecheck(List[Union[str, int]], [4.5]) False 

Running tests

python3 -m unittest 

or just

make test 

About

Provides a `typecheck` function to check a type using PEP 484 style type descriptions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published