File size: 384 Bytes
6da47c0
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

# Only enable beartype when running in the 'dev' environment
# Check the PIXI_ENVIRONMENT_NAME environment variable set by pixi
if os.environ.get("PIXI_ENVIRONMENT_NAME") == "dev":
    try:
        from beartype.claw import beartype_this_package

        beartype_this_package()
    except ImportError:
        # beartype not available even in dev environment
        pass