Metadata-Version: 2.1
Name: pytypes-env
Version: 0.0.5
Summary: Simply calls pytypes.enable_global_typechecked_profiler() when 'PYTYPES' env var is set.
Home-page: https://github.com/mathewmoon/pytypes-env
Author: Mathew Moon
Author-email: me@mathewmoon.net
License: Apache 2.0
Description: # pytypes-env
        
        If PYTYPES env var is set when you import this module then pytypes.enable_global_typechecked_profiler() will be called to enable typechecking.
        Typechecking will be applied to any import or definition after the import statement.
        
        Usage: Import pytypes_env in a script:
        
        ```
        import pytypes_env
        
        def test(foo: str) -> bool:
          return "hello"
        
        
        test(1)
        
        ```
        
        Then run:
        
        ```
         > python3 test.py
        Traceback (most recent call last):
          File "test.py", line 7, in <module>
            test(1)
          File "test.py", line 3, in test
            def test(foo: str) -> bool:
        pytypes.exceptions.InputTypeError:
          __main__.test
          called with incompatible types:
        Expected: Tuple[str]
        Received: Tuple[int]
        
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown
