Skip to content

Commit bd7fed2

Browse files
authored
Turn on pydantic type checking by default (#453)
Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
1 parent e5006cb commit bd7fed2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

csp/impl/wiring/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from csp.impl.wiring.outputs import OutputsContainer
1313
from csp.impl.wiring.special_output_names import UNNAMED_OUTPUT_NAME
1414

15-
USE_PYDANTIC: bool = os.environ.get("CSP_PYDANTIC")
15+
USE_PYDANTIC: bool = os.environ.get("CSP_PYDANTIC", True)
1616

1717
if USE_PYDANTIC:
1818
from pydantic import (

csp/tests/test_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from csp.impl.wiring.runtime import build_graph
2222
from csp.lib import _csptestlibimpl
2323

24-
USE_PYDANTIC = os.environ.get("CSP_PYDANTIC")
24+
USE_PYDANTIC = os.environ.get("CSP_PYDANTIC", True)
2525

2626

2727
@csp.graph

csp/tests/test_type_checking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from csp.impl.types.typing_utils import CspTypingUtils
1414
from csp.impl.wiring.runtime import build_graph
1515

16-
USE_PYDANTIC = os.environ.get("CSP_PYDANTIC")
16+
USE_PYDANTIC = os.environ.get("CSP_PYDANTIC", True)
1717

1818

1919
class TestTypeChecking(unittest.TestCase):

0 commit comments

Comments
 (0)