Skip to content

Commit

Permalink
fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMount committed Sep 13, 2023
1 parent eee6767 commit 5cac6ac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Examples/data_schema/schema_check.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
"We also want to be able to turn enforcement on or off in an entire code base easily. To do this we define a indirect importer called [`schema_check.py`](https://github.com/WinVector/data_algebra/blob/main/Examples/data_schema/schema_check.py). It's code looks like the following:\n",
"\n",
"```\n",
" from data_schema import SchemaCheckSwitch\n",
" # from data_schema import SchemaMock as SchemaCheck\n",
" from data_schema import SchemaRaises as SchemaCheck\n",
" SchemaCheckSwitch().on()\n",
" from data_algebra.data_schema import SchemaCheckSwitch\n",
"\n",
" # from data_algebra.data_schema import SchemaMock as SchemaCheck\n",
" from data_algebra.data_schema import SchemaRaises as SchemaCheck\n",
"\n",
" SchemaCheckSwitch().on()\n",
"```\n",
"\n",
"Isolating these lines in a shared import lets all other code switch behavior by only editing this file.\n",
Expand Down

0 comments on commit 5cac6ac

Please sign in to comment.