Skip to main content

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]

Metadata

Release files for pytypes-env 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytypes-env 0.0.4
File Size Uploaded
pytypes-env-0.0.4.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytypes-env 0.0.4
File Interpreter ABI Platform
pytypes_env-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 kB

Release files / pytypes-env-0.0.4.tar.gz

Download URL pytypes-env-0.0.4.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7e7f6fdf780169fce0ae4d6ef07a1c3ee9afc450d5e647f90d22eea340965132
BLAKE2b-256 checksum
How to use checksums
e618ce33325e93b3421a1cd73760f6dee1c306fe4f0ab9b8d4052521ad72af8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

Release files / pytypes_env-0.0.4-py3-none-any.whl

Download URL pytypes_env-0.0.4-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
074c00c89e73da0a14cc15dab2d794177ecca70f8d6eca941d850d47f1112ec2
BLAKE2b-256 checksum
How to use checksums
18a558a67473bc4d672d27752595567e0afa21fdb2863878ab6c789f3709886c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

Release history Release notifications | RSS feed

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page