Skip to main content

Simply calls pytypes.enable_global_typechecked_profiler() when 'PYTYPES' env var is set.

Project description


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"


Then run:

 > python3
Traceback (most recent call last):
  File "", line 7, in <module>
  File "", line 3, in test
    def test(foo: str) -> bool:
  called with incompatible types:
Expected: Tuple[str]
Received: Tuple[int]

Project details

Download files

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

Source Distribution

pytypes-env-0.0.5.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

pytypes_env-0.0.5-py3-none-any.whl (1.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page