Skip to content

Commit 3b8ebf6

Browse files
committed
Merge branch 'master' of github.com:CadQuery/cadquery into docs-update
2 parents f3c3d7c + d350c1b commit 3b8ebf6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ before_install:
5858
- conda env create -f environment.yml
5959
- source ~/miniconda/bin/activate cadquery
6060
- conda install -c conda-forge -c defaults -c cadquery python=$PYTHON_VERSION mypy
61-
- pip install git+https://github.com/CadQuery/OCP-stubs.git
61+
- pip install git+https://github.com/CadQuery/OCP-stubs.git@7.4.0
6262

6363
install:
6464
- python setup.py install

cadquery/selectors.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def filter(self, objectList: Sequence[Shape]) -> List[Shape]:
191191

192192

193193
class ParallelDirSelector(BaseDirSelector):
194-
"""
194+
r"""
195195
Selects objects parallel with the provided direction.
196196
197197
Applicability:
@@ -677,9 +677,9 @@ def _getVector(self, pr):
677677
return self.axes[pr.simple_dir]
678678

679679
def filter(self, objectList):
680-
"""
680+
r"""
681681
selects minimum, maximum, positive or negative values relative to a direction
682-
[+\|-\|<\|>\|] \<X\|Y\|Z>
682+
``[+|-|<|>|] <X|Y|Z>``
683683
"""
684684
return self.mySelector.filter(objectList)
685685

@@ -740,7 +740,7 @@ def not_callback(res):
740740

741741

742742
class StringSyntaxSelector(Selector):
743-
"""
743+
r"""
744744
Filter lists objects using a simple string syntax. All of the filters available in the string syntax
745745
are also available ( usually with more functionality ) through the creation of full-fledged
746746
selector objects. see :py:class:`Selector` and its subclasses
@@ -776,11 +776,11 @@ class StringSyntaxSelector(Selector):
776776
:and:
777777
Logical AND, e.g. >X and >Y
778778
:or:
779-
Logical OR, e.g. |X or |Y
779+
Logical OR, e.g. \|X or \|Y
780780
:not:
781781
Logical NOT, e.g. not #XY
782782
:exc(ept):
783-
Set difference (equivalent to AND NOT): |X exc >Z
783+
Set difference (equivalent to AND NOT): \|X exc >Z
784784
785785
Finally, it is also possible to use even more complex expressions with nesting
786786
and arbitrary number of terms, e.g.

0 commit comments

Comments
 (0)