Skip to content

Commit 111f2eb

Browse files
committed
Fix formatting of trust_input parameter documentation for consistency
1 parent 96939c1 commit 111f2eb

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pytensor/compile/function/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ def function(
166166
What to do if a variable in the 'inputs' list is not used in the graph.
167167
Possible values are 'raise', 'warn', 'ignore' and None.
168168
trust_input: bool, default False
169-
If True, no input validation checks are performed when the function is
169+
If True, no input validation checks are performed when the function is
170170
called. This includes checking the number of inputs, their types and
171171
that multiple inputs are not aliased to each other. Failure to meet any
172-
of these conditions can lead to computational errors or to the
172+
of these conditions can lead to computational errors or to the
173173
interpreter crashing.
174174
175175
Returns

pytensor/compile/function/pfunc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ def pfunc(
427427
An existing `FunctionGraph` from which to construct the returned
428428
`Function`. When this is non-``None``, nothing is cloned.
429429
trust_input : bool, default False
430-
If True, no input validation checks are performed when the function is
430+
If True, no input validation checks are performed when the function is
431431
called. This includes checking the number of inputs, their types and
432432
that multiple inputs are not aliased to each other. Failure to meet any
433-
of these conditions can lead to computational errors or to the
433+
of these conditions can lead to computational errors or to the
434434
interpreter crashing.
435435
436436
Returns

pytensor/compile/function/types.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ def __init__(
371371
maker
372372
The `FunctionMaker` that created this instance.
373373
trust_input : bool, default False
374-
If True, no input validation checks are performed when the function is
374+
If True, no input validation checks are performed when the function is
375375
called. This includes checking the number of inputs, their types and
376376
that multiple inputs are not aliased to each other. Failure to meet any
377-
of these conditions can lead to computational errors or to the
377+
of these conditions can lead to computational errors or to the
378378
interpreter crashing.
379379
name
380380
A string name.
@@ -1311,10 +1311,10 @@ class FunctionMaker:
13111311
An optional name for this function. If used, the profile mode will
13121312
print the time spent in this function.
13131313
trust_input : bool, default False
1314-
If True, no input validation checks are performed when the function is
1314+
If True, no input validation checks are performed when the function is
13151315
called. This includes checking the number of inputs, their types and
13161316
that multiple inputs are not aliased to each other. Failure to meet any
1317-
of these conditions can lead to computational errors or to the
1317+
of these conditions can lead to computational errors or to the
13181318
interpreter crashing.
13191319
"""
13201320

@@ -1752,10 +1752,10 @@ def orig_function(
17521752
An existing `FunctionGraph` to use instead of constructing a new one
17531753
from cloned `outputs`.
17541754
trust_input : bool, default False
1755-
If True, no input validation checks are performed when the function is
1755+
If True, no input validation checks are performed when the function is
17561756
called. This includes checking the number of inputs, their types and
17571757
that multiple inputs are not aliased to each other. Failure to meet any
1758-
of these conditions can lead to computational errors or to the
1758+
of these conditions can lead to computational errors or to the
17591759
interpreter crashing.
17601760
"""
17611761

0 commit comments

Comments
 (0)