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.3

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.3
File Size Uploaded
pytypes-env-0.0.3.tar.gz 1.9 kB Details

Built distribution (wheel)

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

Total release size: 3.8 kB

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

Download URL pytypes-env-0.0.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c416f5a122cfd6f575397888ac14905aaa45877aef7385410e85f43ea66c2c2f
BLAKE2b-256 checksum
How to use checksums
e531e0e496518251f445ac22646c4dea95187571526a9e3e6595ad82cecb38b0
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.3-py3-none-any.whl

Download URL pytypes_env-0.0.3-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
497a729ca707e31a6a0802a708a2ad311173d94de923a3649207188dd79c290c
BLAKE2b-256 checksum
How to use checksums
ea0aec900acaaab0cc13d4200c38a2f59a4407dcffa2fa2850a3402d980c4910
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

0.0.4

2 release files

This release

0.0.3 This release

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